.. | ||
CMakeLists.txt | ||
lean-cmd.el | ||
lean-debug.el | ||
lean-flycheck.el | ||
lean-info.el | ||
lean-input.el | ||
lean-mode.el | ||
lean-server.el | ||
lean-settings.el | ||
lean-syntax.el | ||
lean-tags.el | ||
lean-type.el | ||
lean-util.el | ||
lean-variable.el | ||
README.md |
lean-mode
Emacs mode for lean theorem prover
Requirement
lean-mode
requires Emacs 24 and following (optional)
packages which can be installed via M-x package-install.
To install them, you need to have MELPA in your
package-archives
. You can add it by evaluating the following elisp
code:
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
Setup
Put the following elisp code on your emacs setup:
(setq lean-rootdir "~/projects/lean")
(setq-local lean-emacs-path
(concat (file-name-as-directory lean-rootdir)
(file-name-as-directory "src")
"emacs"))
(add-to-list 'load-path (expand-file-name lean-emacs-path))
(require 'lean-mode)
;; lean customization
(customize-set-variable 'lean-show-rule-column-method 'vline)
(customize-set-variable 'lean-rule-column 100)
(customize-set-variable 'lean-rule-color "#ff0000")
(customize-set-variable 'lean-delete-trailing-whitespace t)
Key Bindings
Key | Function |
---|---|
C-c C-x | lean-std-exe |
C-c C-l | lean-std-exe |
C-c C-k | lean-hott-exe |
C-c C-t | lean-eldoc-documentation-function |
C-c C-f | lean-fill-placeholder |
M-. | lean-find-tag |
TAB | lean-complete-tag |