Actually load straight when asked to initialize it

`straight--load-build-cache` is not autoloaded, so we fail if it has not
been loaded yet. Apparently it usually is when we hit this override
interactively, but Doom CLI can call our override early enough we need
this.
This commit is contained in:
Marien Zwart 2024-04-28 20:09:06 +10:00
parent 87267ca824
commit 24ee7b6838
No known key found for this signature in database

View file

@ -30,6 +30,7 @@ it. Just skip it entirely."
;; doom-initialize-core-packages normally registers recipes, which loads the
;; build cache by side effect, which leaves straight--build-cache available
;; afterwards. Doom assumes this cache is available, so force a load here.
(require 'straight) ;; straight-load-build-cache is not autoloaded.
(straight--load-build-cache))
(after! doom-packages