Append setq-hook! hooks

So that later setq-hook! calls will overwrite earlier ones.
This commit is contained in:
Henrik Lissner 2018-09-20 14:14:11 -04:00
parent c8b07f3caa
commit 3cd0db82b8

View file

@ -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))