Using use-package
:
(use-package bitcoin-script-mode
:mode "\\.bs\\'"
:commands
(bitcoin-script-mode-format-buffer
bitcoin-script-mode-format-region)
:init
(add-to-list 'company-backends #'bitcoin-script-mode--company-backend)
:bind
("C-c C-f" . bitcoin-script-mode-format-buffer))