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

Louis Gesbert louis.gesbert at ocamlpro.com
Wed Sep 10 12:32:09 BST 2014


Sorry for the noise: there was
https://github.com/ocaml/opam/commit/bbcdf8e7 seems to be in cause.

Thanks for the feedback !

Le mardi 9 septembre 2014, 13:57:22 Yaron Minsky a écrit :
> I guess I don't know if there's been a change, but I think that making
> opam add paths to the front even when those paths are already in PATH,
> is probably better than doing nothing in that case.
> 
> y
> 
> On Tue, Sep 9, 2014 at 12:27 PM, Louis Gesbert
> <louis.gesbert at ocamlpro.com> wrote:
> > I'll check, but I am not sure there has been any recent changes on this. The
> > situation isn't ideal anyway, so I'll gladly take suggestions on improving
> > this.
> >
> >
> >
> > Please see related issue: https://github.com/ocaml/opam/issues/1447
> >
> >
> >
> > Thanks,
> >
> > Louis
> >
> >
> >
> > Le mardi 9 septembre 2014, 11:47:26 Yaron Minsky a écrit :
> >
> >> 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
> >
> >> >
> >
> >> >
> >
> >> _______________________________________________
> >
> >> opam-devel mailing list
> >
> >> opam-devel at lists.ocaml.org
> >
> >> http://lists.ocaml.org/listinfo/opam-devel
> >
> >>
> >
> >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140910/a39272c1/attachment-0001.html>


More information about the opam-devel mailing list