Fix add-hook! for hooks that take arguments
This commit is contained in:
parent
9e2b0c6332
commit
b0ac9abfbf
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ This macro accepts, in order:
|
|||
(mapcar #'doom-unquote rest)
|
||||
(doom-enlist (doom-unquote (car rest))))))
|
||||
|
||||
((setq func-forms (list `(lambda () ,@rest)))))
|
||||
((setq func-forms (list `(lambda (&rest _) ,@rest)))))
|
||||
(dolist (hook hook-forms)
|
||||
(dolist (func func-forms)
|
||||
(push (if remove-p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue