From: Ramakrishnan Muthukrishnan Date: Fri, 31 Oct 2014 11:49:45 +0000 (+0530) Subject: ocaml X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/about/module-simplejson._speedups.html?a=commitdiff_plain;h=fe8da0fe2a804bee85b80b61479f7d5820d0fc88;p=.emacs.d.git ocaml --- diff --git a/init.el b/init.el index fabdc36..9a2f2bb 100644 --- a/init.el +++ b/init.el @@ -72,3 +72,15 @@ ;; 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)