From 3d85f4014ce7cfdc9e537adf768c4b6ab4ebc8db Mon Sep 17 00:00:00 2001 From: Geoff Shannon Date: Sat, 18 Oct 2014 13:36:55 -0400 Subject: [PATCH] Have tuareg mode set the compile command to utilize corebuild via opam --- modules/prelude-ocaml.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/prelude-ocaml.el b/modules/prelude-ocaml.el index 2514a00..54f2dc2 100644 --- a/modules/prelude-ocaml.el +++ b/modules/prelude-ocaml.el @@ -49,7 +49,9 @@ (add-hook 'tuareg-mode-hook (lambda () (progn (define-key tuareg-mode-map (kbd "C-c C-s") - 'utop)))) + 'utop) + (setq compile-command + "opam config exec \"corebuild \"")))) ;; Setup merlin completions company is used by default in prelude (add-to-list 'company-backends 'merlin-company-backend)