ocaml: various tweaks
This commit is contained in:
parent
54f5179a83
commit
626b4d644c
|
@ -39,11 +39,13 @@ Optional configuration layers supported:
|
|||
This layer requires some [opam](http://opam.ocaml.org) packages:
|
||||
|
||||
- `merlin`
|
||||
- `utop`
|
||||
- `ocp-indent`
|
||||
|
||||
To install them, use the following command:
|
||||
|
||||
```sh
|
||||
opam install merlin
|
||||
opam install merlin utop ocp-indent
|
||||
```
|
||||
|
||||
## Key Bindings
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
(evil-leader/set-key-for-mode 'tuareg-mode
|
||||
"mcc" 'compile
|
||||
)
|
||||
;; don't auto-close apostrophes (type 'a = foo)
|
||||
(when (fboundp 'sp-local-pair)
|
||||
(sp-local-pair 'tuareg-mode "'" nil :actions nil)
|
||||
)
|
||||
)
|
||||
|
||||
(defun ocaml/opam ()
|
||||
|
@ -75,7 +79,6 @@
|
|||
|
||||
(defun ocaml/init-ocp-indent ()
|
||||
(use-package ocp-indent
|
||||
:defer t
|
||||
:init
|
||||
(ocaml/opam)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue