From fa32fa78a20230c1f54edf5913c04ca2107c5a08 Mon Sep 17 00:00:00 2001 From: Samarth Kishor Date: Sat, 21 Dec 2019 01:01:01 -0500 Subject: [PATCH] add documentation for dune utop usage in emacs --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index f7ea987..99dc01c 100644 --- a/README.md +++ b/README.md @@ -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`: