From ca97300f8401cb1b7d56feaf18373b1e3040c267 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 24 Feb 2020 20:37:46 -0500 Subject: [PATCH] Load sly-contribs immediately, after sly loads To fix a load order issue with some sly plugins (like sly-macrostep) not loading early enough, thus requiring the buffer be reloaded or reverted to activate them. --- modules/lang/common-lisp/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/lang/common-lisp/config.el b/modules/lang/common-lisp/config.el index a401dd657..a0b1a450c 100644 --- a/modules/lang/common-lisp/config.el +++ b/modules/lang/common-lisp/config.el @@ -23,6 +23,12 @@ :definition #'sly-edit-definition :documentation #'sly-describe-symbol)) + ;; 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. + (add-hook! 'doom-after-init-modules-hook + (after! sly (sly-setup))) + :config (setq sly-mrepl-history-file-name (concat doom-cache-dir "sly-mrepl-history") sly-kill-without-query-p t