fix: more void-variable errors

For `straight--build-cache` and `doom-modules`.

Fix: #8140
Amend: 8cafbe4408
This commit is contained in:
Henrik Lissner
2024-11-03 12:32:38 -05:00
parent aab1595011
commit f425f2ff3d
4 changed files with 29 additions and 23 deletions

View File

@ -320,15 +320,7 @@ If RETURN-P, return the message as a string instead of displaying it."
(setq load-history
(delete (assoc init-file-name load-history)
load-history))
(let ((startup-or-reload?
(or (doom-context-p 'startup)
(doom-context-p 'reload))))
(when startup-or-reload?
(doom--startup-vars))
(doom--startup-module-autoloads)
(doom--startup-package-autoloads)
(when startup-or-reload?
(doom--startup-modules)))))
(doom-startup)))
;; TODO: Add safe-mode profile.
;; (error
;; ;; HACK: This is not really this variable's intended purpose, but it