Browse Source

Activate company mode support for merlin

Also, provide a commented out sample for activating autocomplete support
custom
Geoff Shannon 12 years ago
parent
commit
313265f69c
  1. 7
      modules/prelude-ocaml.el

7
modules/prelude-ocaml.el

@ -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…
Cancel
Save