Append setq-hook! hooks
So that later setq-hook! calls will overwrite earlier ones.
This commit is contained in:
parent
c8b07f3caa
commit
3cd0db82b8
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue