Ensure straight is loaded on doom-initialize-packages
Without causing recursive require errors if called in an after! handler for straight.
This commit is contained in:
parent
8d3536fa77
commit
b2fd76cb49
2 changed files with 2 additions and 1 deletions
|
@ -138,6 +138,8 @@ necessary package metadata is initialized and available for them."
|
|||
(when (or force-p (not doom-init-packages-p))
|
||||
(doom-log "Initializing straight")
|
||||
(setq doom-init-packages-p t)
|
||||
(unless (fboundp 'straight--reset-caches)
|
||||
(require 'straight))
|
||||
(straight--reset-caches)
|
||||
(mapc #'straight-use-recipes doom-core-package-sources)
|
||||
(straight-register-package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue