mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -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))
|
,(format "%s = %s" var (pp-to-string val))
|
||||||
(setq-local ,var ,val))
|
(setq-local ,var ,val))
|
||||||
collect `(remove-hook ',hook #',fn) ; ensure set order
|
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)
|
(defmacro unsetq-hook! (hooks &rest vars)
|
||||||
"Unbind setq hooks on HOOKS for VARS.
|
"Unbind setq hooks on HOOKS for VARS.
|
||||||
|
Reference in New Issue
Block a user