From f67f3914433d613e16442e76b7407c4fe9a4ea09 Mon Sep 17 00:00:00 2001 From: Ellis Kenyo Date: Wed, 13 Sep 2023 10:16:26 +0100 Subject: [PATCH] fix(common-lisp): amend sly-compat hook --- modules/lang/common-lisp/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/common-lisp/config.el b/modules/lang/common-lisp/config.el index 07ab50c5b..9edc7f548 100644 --- a/modules/lang/common-lisp/config.el +++ b/modules/lang/common-lisp/config.el @@ -31,8 +31,8 @@ :definition #'sly-edit-definition :documentation #'sly-describe-symbol)) - (add-hook! 'lisp-mode - (after! sly (sly-lisp-indent-compatibility-mode))) + ;; This needs to be appended so it fires later than `sly-editing-mode' + (add-hook 'lisp-mode-local-vars-hook #'sly-lisp-indent-compatibility-mode 'append) ;; 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