mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Append setq-hook! hooks
So that later setq-hook! calls will overwrite earlier ones.
This commit is contained in:
@ -274,8 +274,8 @@ Body forms can access the hook's arguments through the let-bound variable
|
|||||||
fill-column 80)"
|
fill-column 80)"
|
||||||
(declare (indent 1))
|
(declare (indent 1))
|
||||||
(unless (= 0 (% (length rest) 2))
|
(unless (= 0 (% (length rest) 2))
|
||||||
(signal 'wrong-number-of-arguments (length rest)))
|
(signal 'wrong-number-of-arguments (listp #'evenp (length rest))))
|
||||||
`(add-hook! ,hooks
|
`(add-hook! :append ,hooks
|
||||||
,@(let (forms)
|
,@(let (forms)
|
||||||
(while rest
|
(while rest
|
||||||
(let ((var (pop rest))
|
(let ((var (pop rest))
|
||||||
|
Reference in New Issue
Block a user