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

Yaron Minsky yminsky at janestreet.com
Tue Sep 9 16:47:26 BST 2014


Just to renew my question to the opam devs: we can probably find
improvements to the standard emacs setup we recommend to people, but
should we unwind the change in opam in how it handles the PATH
variable, to avoid breaking people's installed config files?

y

On Tue, Sep 9, 2014 at 11:18 AM, Daniel Bünzli
<daniel.buenzli at erratique.ch> wrote:
> 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