mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
setq-hook!: don't append setq hooks
Now settings can take effect in time for hooks that could see them.
This commit is contained in:
@ -343,7 +343,7 @@ If N and M = 1, there's no benefit to using this macro over `remove-hook'.
|
||||
,(format "%s = %s" var (pp-to-string val))
|
||||
(setq-local ,var ,val))
|
||||
collect `(remove-hook ',hook #',fn) ; ensure set order
|
||||
collect `(add-hook ',hook #',fn 'append))))
|
||||
collect `(add-hook ',hook #',fn))))
|
||||
|
||||
(defmacro unsetq-hook! (hooks &rest vars)
|
||||
"Unbind setq hooks on HOOKS for VARS.
|
||||
|
Reference in New Issue
Block a user