[opam-devel] Opam 1.2 breaks emacs on the mac sortof

Daniel Bünzli daniel.buenzli at erratique.ch
Tue Sep 9 16:18:45 BST 2014


Le mardi, 9 septembre 2014 à 16:37, Yaron Minsky a écrit :
> Do those things work properly for you?

For things like merlin you can use (but that may be on the merlin2 branch, you'll have to check that).  

(require 'merlin)
(setq merlin-command 'opam)
(add-to-list 'company-backends 'merlin-company-backend)
(add-hook 'caml-mode-hook 'merlin-mode)
(setq merlin-use-auto-complete-mode 'easy)



For things like ocp-indent I use:  

; ocp-indent
(require 'ocp-indent)
(setq ocp-indent-path
      (concat
       (replace-regexp-in-string "\n$" ""
           (shell-command-to-string "opam config var bin")) "/ocp-indent"))
(setq ocp-indent-config "strict_with=always,match_clause=4,strict_else=never")


For utop I don't know, I don't use it. But if you can set its command to use in emacs to something like for ocp-indent-path above.

I confirm that M-x shell doesn't work me either, ocaml is not found at all.  

Best,

Daniel




More information about the opam-devel mailing list