mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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
29 lines
896 B
EmacsLisp
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))
|