Merge pull request #632 from RadicalZephyr/tuareg-utop-integration
Tuareg utop integration
This commit is contained in:
commit
ccb863fc5e
1 changed files with 5 additions and 2 deletions
|
@ -43,11 +43,14 @@
|
||||||
("\\.topml\\'" . tuareg-mode))
|
("\\.topml\\'" . tuareg-mode))
|
||||||
auto-mode-alist))
|
auto-mode-alist))
|
||||||
|
|
||||||
(autoload 'utop-setup-ocaml-buffer "utop" "Toplevel for OCaml" t)
|
|
||||||
|
|
||||||
(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
|
(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
|
||||||
(add-hook 'tuareg-mode-hook 'merlin-mode)
|
(add-hook 'tuareg-mode-hook 'merlin-mode)
|
||||||
|
|
||||||
|
(add-hook 'tuareg-mode-hook (lambda ()
|
||||||
|
(progn
|
||||||
|
(define-key tuareg-mode-map (kbd "C-c C-s")
|
||||||
|
'utop))))
|
||||||
|
|
||||||
;; Setup merlin completions company is used by default in prelude
|
;; Setup merlin completions company is used by default in prelude
|
||||||
(add-to-list 'company-backends 'merlin-company-backend)
|
(add-to-list 'company-backends 'merlin-company-backend)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue