Open shonfeder opened 5 years ago
/cc @Chris00
I'm not an expert in this domain, but I believe a few options are:
Hello, No progress on this? For the record, on my side I ended up adding the following lines to my .emacs:
(load "/path/to/the/right/opam/switch/share/emacs/site-lisp/dune.el")
(add-to-list 'auto-mode-alist '("/dune\\'" . dune-mode))
M-x package-refresh-contents
M-x package-install
-> type dune
, enter
Not sure how to solve this, indeed maybe adding a bit of documentation?
I find the approach of https://github.com/ocaml-opam/opam-user-setup interesting
After years of using dune (not to mention emacs!), I've just discovered there's a dune-mode, so I think this very useful bit of code deserves more advertising. How about adding a section in the (otherwise excellent) documentation about editor support, showing how to install dune-mode
(I followed @sanette's suggestion) and how to activate it automatically when editing dune files (opam-user-setup
did it for me).
I ended up having to manually load the file from the install location in my
~/.opam
directory. There is probably a better way to get the package available, but I couldn't find any trace of it.If someone notes the preferred installation method, I'm happy to test it and write up the documentation.