doc: new way to install lean4-mode

The current installation procedure requires you to have and update a checkout
of lean4 yourself which is rather annoying if you are just someone who
wants to work with lean4-mode for another project. straight.el +
use-package provide a nice alternative to the current approach.
This commit is contained in:
Henrik Böving 2021-08-27 15:37:55 +02:00 committed by Sebastian Ullrich
parent 4eca7c2a39
commit b46aa05241

View file

@ -21,6 +21,25 @@ To use `lean4-mode` in Emacs, add the following to your `init.el`:
(require 'lean4-mode)
```
Alternatively if you are a fan of `use-package` and `straight.el` you
can use:
```
(use-package lean4-mode
:straight (lean4-mode :type git :host github :repo "leanprover/lean4"
:files ("lean4-mode/lean4*.el"))
;; to defer loading the package until required
:commands (lean4-mode))
```
If you are working on the `lean4` repository already and don't want to
have two separate checkouts you can use:
```
(use-package lean4-mode
:straight (lean4-mode :local-repo "/path/to/your/lean4"
:files ("lean4-mode/lean4*.el"))
;; to defer loading the package until required
:commands (lean4-mode))
```
Trying It Out
=============