Activate company mode support for merlin

Also, provide a commented out sample for activating autocomplete support
This commit is contained in:
Geoff Shannon 2014-07-28 12:52:18 -07:00
parent d2e892d4c1
commit 313265f69c

View file

@ -50,6 +50,13 @@
(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
(add-hook 'tuareg-mode-hook 'merlin-mode)
;; Setup merlin completions company is used by default in prelude
(add-to-list 'company-backends 'merlin-company-backend)
;; But merlin also offers support for autocomplete, uncomment this next line
;; to activate it.
;; (setq merlin-use-auto-complete-mode t)
(setq utop-command "opam config exec \"utop -emacs\""
merlin-error-after-save nil)