General, minor refactor & feedback revision

This commit is contained in:
Henrik Lissner 2018-06-14 19:49:03 +02:00
parent f44ebbb7ed
commit 04ec62c8f2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 15 additions and 14 deletions

View file

@ -274,8 +274,7 @@ to least)."
(defmacro def-package! (name &rest plist)
"A thin wrapper around `use-package'."
;; Ignore package if NAME is in `doom-disabled-packages'
(when (and (memq name (bound-and-true-p doom-disabled-packages))
(not (memq :disabled plist)))
(when (memq name (bound-and-true-p doom-disabled-packages))
(setq plist `(:disabled t ,@plist)))
;; If byte-compiling, ignore this package if it doesn't meet the condition.
;; This avoids false-positive load errors.