Skip to content

Commit

Permalink
init-ocaml: better handling of merlin-company
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Apr 12, 2021
1 parent 090b799 commit 4b16a4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lisp/init-ocaml.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
(when (maybe-require-package 'merlin)
(add-hook 'tuareg-mode-hook 'merlin-mode)

(with-eval-after-load 'merlin
(with-eval-after-load 'company
(push 'merlin-company-backend company-backends)))
(when (maybe-require-package 'merlin-company)
(with-eval-after-load 'merlin
(with-eval-after-load 'company
(push 'merlin-company-backend company-backends))))

(when (maybe-require-package 'merlin-eldoc)
(with-eval-after-load 'merlin
Expand Down

0 comments on commit 4b16a4c

Please sign in to comment.