Files
doomemacs/modules/lang/lean/config.el
Henrik Lissner 01666572d7 fix(lean): remove company-lean
company-lean was removed from MELPA. Since lean4 support is around the
corner and Doom has deprecated its support for Company, I'll simply
remove this package.

Ref: melpa/melpa@11196af312
Fix: #8159
2025-01-12 20:13:49 -05:00

29 lines
896 B
EmacsLisp

;;; lang/lean/config.el -*- lexical-binding: t; -*-
(after! lean-mode
(set-lookup-handlers! 'lean-mode
:definition #'lean-find-definition)
(sp-with-modes 'lean-mode
(sp-local-pair "/-" "-/")
(sp-local-pair "`" "`")
(sp-local-pair "{" "}")
(sp-local-pair "«" "»")
(sp-local-pair "" "")
(sp-local-pair "" ""))
(map! :map lean-mode-map
:localleader
"g" #'lean-toggle-show-goal
"n" #'lean-toggle-next-error
(:prefix ("s" . "server")
"r" #'lean-server-restart
"s" #'lean-server-stop
"v" #'lean-server-switch-version)
(:prefix ("p" . "leanpkg")
"t" #'lean-leanpkg-test
"b" #'lean-leanpkg-build
"c" #'lean-leanpkg-configure)
"f" #'lean-fill-placeholder
"h" #'lean-hole
"m" #'lean-message-boxes-toggle
"e" #'lean-execute))