Add working fsharp installation

This commit is contained in:
Maciej 2020-09-07 12:08:04 +03:00
parent 341a2b0ee7
commit 6e0b17c263
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 56 additions and 4 deletions

View file

@ -58,10 +58,29 @@ _o_: Update opam env
;; Use tuareg-opam with lock files
(add-to-list 'auto-mode-alist '("\\.opam.locked\\'" . tuareg-opam-mode))
(defhydra my-reason/context-hydra (:color teal :hint nil)
"
Reason actions
^Reason^ ^Actions^
^^^^^^^^-----------------------------------------------------------------------
_f_: Format buffer
_o_: Update opam env
"
("q" nil "cancel" :color blue)
("f" refmt)
("o" tuareg-opam-update-env))
(defun my-reason-mode ()
"Generate reason config."
(define-key reason-mode-map (kbd "C-c l") 'my-reason/context-hydra/body))
;; Reason setup
(add-hook 'reason-mode-hook
(lambda ()
(add-hook 'before-save-hook #'refmt-before-save)))
(add-hook 'reason-mode-hook 'my-reason-mode)
(add-hook 'reason-mode-hook 'merlin-mode)
(provide 'languages/ocaml)