feat(format): add :lang common-lisp formatter
This commit is contained in:
parent
9a7eae77c8
commit
4d51e46c9f
1 changed files with 4 additions and 0 deletions
|
@ -26,10 +26,14 @@
|
|||
(after! lisp-mode
|
||||
(set-repl-handler! 'lisp-mode #'+lisp/open-repl)
|
||||
(set-eval-handler! 'lisp-mode #'sly-eval-region)
|
||||
(set-formatter! 'lisp-indent #'apheleia--indent-lisp-buffer :modes '(lisp-mode))
|
||||
(set-lookup-handlers! 'lisp-mode
|
||||
:definition #'sly-edit-definition
|
||||
:documentation #'sly-describe-symbol))
|
||||
|
||||
(add-hook! 'lisp-mode
|
||||
(after! sly (sly-lisp-indent-compatibility-mode)))
|
||||
|
||||
;; HACK Ensures that sly's contrib modules are loaded as soon as possible, but
|
||||
;; also as late as possible, so users have an opportunity to override
|
||||
;; `sly-contrib' in an `after!' block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue