mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Fix void-variable targets when using unpin! macro
This commit is contained in:
@ -319,10 +319,10 @@ can be used one of five ways:
|
|||||||
(unpin! (:lang python javascript) (:tools docker))
|
(unpin! (:lang python javascript) (:tools docker))
|
||||||
|
|
||||||
Or any combination of the above."
|
Or any combination of the above."
|
||||||
`(progn
|
`(let ((targets ',targets))
|
||||||
(put 'doom-pinned-packages 'modified
|
(put 'doom-pinned-packages 'modified
|
||||||
(delete-dups (append targets (get 'doom-pinned-packages 'modified))))
|
(delete-dups (append targets (get 'doom-pinned-packages 'modified))))
|
||||||
(dolist (target ',targets)
|
(dolist (target targets)
|
||||||
(cond
|
(cond
|
||||||
((eq target t)
|
((eq target t)
|
||||||
(setq doom-pinned-packages nil))
|
(setq doom-pinned-packages nil))
|
||||||
|
Reference in New Issue
Block a user