Fix sly common lisp style issues

This commit is contained in:
2021-01-18 12:22:47 +03:00
parent 4e8aac8142
commit a10a12c210

View File

@@ -12,17 +12,10 @@
:ensure t :ensure t
:custom :custom
(inferior-lisp-program "sbcl") (inferior-lisp-program "sbcl")
(lisp-indent-function 'common-lisp-indent-function) :config (defun set-common-lisp-style ()
:hook (lisp-mode . sly-mode)) (setq-local common-lisp-style "classic"))
;;; To be able to indent Common Lisp properly, 2 things needed: :hook ((lisp-mode . sly-mode)
;;; 1. connection with Sly should be established (lisp-mode . set-common-lisp-style)))
;;; 2. Buffer-local lisp-indent-function variable should be set to Sly-
;;; provided 'common-lisp-indent-function.
(add-hook 'sly-mode-hook
(lambda ()
(unless (sly-connected-p)
(save-excursion (sly)))
(setq common-lisp-style "classic")))
(use-package elisp-mode (use-package elisp-mode
:custom :custom