Fix warning when disabling core packages
This commit is contained in:
parent
a5fc782e76
commit
b592e58c97
1 changed files with 2 additions and 2 deletions
|
@ -223,7 +223,7 @@ necessary package metadata is initialized and available for them."
|
|||
doom-packages (doom-package-list))
|
||||
(dolist (package doom-packages)
|
||||
(let ((name (car package)))
|
||||
(with-plist! (cdr package) (recipe module disable ignore pin)
|
||||
(with-plist! (cdr package) (recipe modules disable ignore pin)
|
||||
(if ignore
|
||||
(doom-log "Ignoring package %S" name)
|
||||
(when pin
|
||||
|
@ -239,7 +239,7 @@ necessary package metadata is initialized and available for them."
|
|||
(doom-log "Disabling package %S" name)
|
||||
(cl-pushnew name doom-disabled-packages)
|
||||
;; Warn about disabled core packages
|
||||
(when (cl-find :core module :key #'car)
|
||||
(when (cl-find :core modules :key #'car)
|
||||
(print! (warn "%s\n%s")
|
||||
(format "You've disabled %S" name)
|
||||
(indent 2 (concat "This is a core package. Disabling it will cause errors, as Doom assumes\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue