ocaml
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 31 Oct 2014 11:49:45 +0000 (17:19 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 31 Oct 2014 11:49:45 +0000 (17:19 +0530)
init.el

diff --git a/init.el b/init.el
index fabdc36f8232a0fb861d87e28f8511491bcf4e00..9a2f2bbb267e0e065f04539cb6168cdca5b4cba5 100644 (file)
--- a/init.el
+++ b/init.el
 
 ;; haskell mode
 (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
+
+;; ocaml
+(add-hook 'tuareg-mode-hook 'tuareg-imenu-set-imenu)
+(setq auto-mode-alist
+      (append '(("\\.ml[ily]?$" . tuareg-mode)
+                ("\\.topml$" . tuareg-mode))
+              auto-mode-alist))
+(autoload 'utop-setup-ocaml-buffer "utop" "Toplevel for OCaml" t)
+(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
+(add-hook 'tuareg-mode-hook 'merlin-mode)
+(setq merlin-use-auto-complete-mode t)
+(setq merlin-error-after-save nil)