Add OCaml binding to indent buffer with ocp-indent

This commit is contained in:
km 2016-05-16 05:13:22 -04:00 committed by syl20bnr
parent bef3f838fd
commit e70796882d
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@
(use-package ocp-indent
:defer t
:init
(add-hook 'tuareg-mode-hook 'ocp-indent-caml-mode-setup)))
(add-hook 'tuareg-mode-hook 'ocp-indent-caml-mode-setup)
(spacemacs/set-leader-keys-for-major-mode 'tuareg-mode
"=" 'ocp-indent-buffer)))
(defun ocaml/post-init-smartparens ()
(with-eval-after-load 'smartparens