mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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)"
|
||||
(declare (indent 1))
|
||||
(unless (= 0 (% (length rest) 2))
|
||||
(signal 'wrong-number-of-arguments (length rest)))
|
||||
`(add-hook! ,hooks
|
||||
(signal 'wrong-number-of-arguments (listp #'evenp (length rest))))
|
||||
`(add-hook! :append ,hooks
|
||||
,@(let (forms)
|
||||
(while rest
|
||||
(let ((var (pop rest))
|
||||
|
Reference in New Issue
Block a user