Fix sly common lisp style issues
This commit is contained in:
15
emacs/.emacs
15
emacs/.emacs
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user