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.
This commit is contained in:
Henrik Lissner 2020-02-24 20:37:46 -05:00
parent 8de7a6e53d
commit ca97300f84
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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