mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix error when doom-packages-file doesn't exist
This commit is contained in:
@ -151,7 +151,7 @@ FORCE-P is non-nil, do it anyway.
|
|||||||
(unless (load doom-autoload-file t t t)
|
(unless (load doom-autoload-file t t t)
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
(error "No autoloads file! Run make autoloads")))
|
(error "No autoloads file! Run make autoloads")))
|
||||||
(when noninteractive
|
(when (and noninteractive (file-exists-p doom-packages-file))
|
||||||
(delete-file doom-packages-file))
|
(delete-file doom-packages-file))
|
||||||
(when (or force-p (not (load doom-packages-file t t t)))
|
(when (or force-p (not (load doom-packages-file t t t)))
|
||||||
;; Ensure core folders exist, otherwise we get errors
|
;; Ensure core folders exist, otherwise we get errors
|
||||||
|
Reference in New Issue
Block a user