From fe8da0fe2a804bee85b80b61479f7d5820d0fc88 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Fri, 31 Oct 2014 17:19:45 +0530
Subject: [PATCH] ocaml

---
 init.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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)
-- 
2.45.2