add documentation for dune utop usage in emacs

This commit is contained in:
Samarth Kishor 2019-12-21 01:01:01 -05:00 committed by Perry E. Metzger
parent ba35712f1b
commit fa32fa78a2
1 changed files with 7 additions and 0 deletions

View File

@ -149,6 +149,13 @@ your `~/.emacs`:
(setq utop-command "opam config exec -- utop -emacs")
```
If you use `dune` and want to launch `dune utop` in emacs, you
should add this to your `~/.emacs`:
```scheme
(setq utop-command "opam config exec -- dune utop . -- -emacs")
```
This was tested with opam 1.2. For older versions of opam, you can
copy&paste this to your `~/.emacs`: