[ocaml-platform] "opam config env" and emacs

Yaron Minsky yminsky at janestreet.com
Sat Apr 6 19:12:39 BST 2013


Does anyone know a good way of setting up emacs to point to the
appropriate site-lisp directory in OPAM?  Right now, I have a stanza
like this in my .emacs:

(add-to-list 'load-path
             (expand-file-name
"~/.opam/4.01.0dev+trunk/share/emacs/site-lisp/"))

But this is of course not at all sensitive to opam switch.  Jeremie
has some auto-detection code here:

   https://github.com/diml/utop/issues/4

Should we integrate this into OPAM somehow so people don't have to dig
this out and cut and paste it in?

y


More information about the Platform mailing list