Ok, my first significant tinkering in #emacs – I reconfigured eglot's #ocaml settings to use dune developer preview to activate ocamllsp.
Caveat: ocamlformat doesn't work. I don't know how to ask eglot to use `dune tools exec ocamlformat`. Help appreciated.
https://discuss.ocaml.org/t/ann-dune-developer-preview-updates/15160/62
Caveat: ocamlformat doesn't work. I don't know how to ask eglot to use `dune tools exec ocamlformat`. Help appreciated.
https://discuss.ocaml.org/t/ann-dune-developer-preview-updates/15160/62
Comments
May be there is a better, emacs-native way to update PATH per project?
All eglot does is send a formatting request to ocamllsp because ocamllsp claims to provide formatting capabilities. The onus of finding ocamlformat is on ocamllsp, which looks for ocamlformat binary on PATH >>
# from terminal
$ PATH="$(dirname $(dune tools which ocamlformat)):$PATH" emacs
I would appreciate a better approach than this.