feat(format): add :lang common-lisp formatter

This commit is contained in:
Ellis Kenyő 2022-08-15 06:34:12 +01:00 committed by Ellis Kenyo
parent 9a7eae77c8
commit 4d51e46c9f
No known key found for this signature in database
GPG key ID: 298BE5D997EBAA02

View file

@ -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.