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:
parent
4eca7c2a39
commit
b46aa05241
1 changed files with 19 additions and 0 deletions
|
|
@ -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
|
||||
=============
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue