Recommend `opam exec` instead of deprecated `opam config exec` (#403)

This commit is contained in:
Brian Leung 2022-11-02 20:37:01 -07:00 committed by GitHub
parent 0cb4ffe584
commit 263428053b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -182,17 +182,17 @@ your `~/.emacs`:
```elisp
;; Use the opam installed utop
(setq utop-command "opam config exec -- utop -emacs")
(setq utop-command "opam exec -- utop -emacs")
```
If you use `dune` and want to launch `dune utop` in emacs, you
should add this to your `~/.emacs`:
```elisp
(setq utop-command "opam config exec -- dune utop . -- -emacs")
(setq utop-command "opam exec -- dune utop . -- -emacs")
```
This was tested with opam 1.2. For older versions of opam, you can
This was tested with opam 2.1. For older versions of opam, you can
copy&paste this to your `~/.emacs`:
```elisp