Activate company mode support for merlin
Also, provide a commented out sample for activating autocomplete support
This commit is contained in:
parent
d2e892d4c1
commit
313265f69c
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@
|
||||||
(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)
|
||||||
|
|
||||||
|
;; 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\""
|
(setq utop-command "opam config exec \"utop -emacs\""
|
||||||
merlin-error-after-save nil)
|
merlin-error-after-save nil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue