Provide straight--build-cache
Add an (empty) straight.el build cache to the generated profile, and load it when Doom calls `doom-initialize-core-packages` (which normally does so by side effect). Unfortunately requires adding to pre-init: Doom overrides `straight-base-dir`, and we need to override that override. Partially fixes package help.
This commit is contained in:
parent
f150fe6c89
commit
80e6ef0d25
3 changed files with 17 additions and 8 deletions
|
|
@ -9,7 +9,14 @@
|
|||
`straight-recipe-repositories' is set, but we do not want to set
|
||||
it. Just skip it entirely."
|
||||
:override #'doom-initialize-core-packages
|
||||
(doom-log "Assuming straight was already initialized"))
|
||||
(doom-log "nix-doom-emacs-unstraightened overriding core package init")
|
||||
;; 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.
|
||||
(straight--load-build-cache))
|
||||
|
||||
(after! doom-packages
|
||||
(setq straight-base-dir unstraightened--straight-base-dir))
|
||||
|
||||
;; nix-doom-emacs-unstraightened additions end here.
|
||||
;; Original init.el follows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue