Allow chained package!'s
This allows users to disable one master package, thus disabling all its children. e.g. Disable irony, then irony-eldoc, flycheck-irony, company-irony and company-irony-c-headers will be disabled too.
This commit is contained in:
parent
09ecce0073
commit
0dfe1bc3d5
1 changed files with 6 additions and 2 deletions
|
@ -597,7 +597,10 @@ Accepts the following properties:
|
|||
:ignore FORM
|
||||
Do not install this package.
|
||||
:freeze FORM
|
||||
Do not update this package if FORM is non-nil."
|
||||
Do not update this package if FORM is non-nil.
|
||||
|
||||
Returns t if package is successfully registered, and nil if it was disabled
|
||||
elsewhere."
|
||||
(declare (indent defun))
|
||||
(doom--assert-stage-p 'packages #'package!)
|
||||
(cond ((memq name doom-disabled-packages) nil)
|
||||
|
@ -623,7 +626,8 @@ Accepts the following properties:
|
|||
`(progn
|
||||
,(when (and pkg-pin t)
|
||||
`(map-put package-pinned-packages ',name ,pkg-pin))
|
||||
(map-put doom-packages ',name ',plist))))))
|
||||
(map-put doom-packages ',name ',plist)
|
||||
t)))))
|
||||
|
||||
(defmacro packages! (&rest packages)
|
||||
"A convenience macro like `package!', but allows you to declare multiple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue