This layer adds support for the Lean 4 theorem prover, using lean-mode. Thanks to the maintainers of lean-mode, and to robkorn for the Lean 3 layer.
You need to install Lean 4 to use this layer.
To install:
git clone https://github.com/allispaul/spacemacs-lean4-layer.git ~/.emacs.d/private/lean4- Add
lean4todotspacemacs-configuration-layersin your~/.spacemacs.
| Key Binding | Description |
|---|---|
SPC m c |
Execute lean in standalone mode (lean4-std-exe) |
SPC m d |
Recompile & reload imports (lean4-refresh-file-dependencies) |
SPC m i |
Toggle info buffer showing goals and errors at point (lean4-toggle-info) |
SPC m k |
Describe keys needed to type symbol at point (quail-show-key) |
SPC m l |
Build package with lake (lean4-lake-build) |
SPC m g d |
Jump to definition (xref-find-definitions) |
SPC m g b |
Jump back (xref-pop-marker-stack) |
SPC m e n |
flycheck: go to next error |
SPC m e p |
flycheck: go to previous error |
SPC m e l |
flycheck: list errors |