Debug undefined add-hook-before-save
`use-package` complains that `add-hook-before-save` doesn't exist. This is because it's now named `macros-add-hook-before-save`. This fixes that.
This commit is contained in:
parent
71e57700d6
commit
924c7fa419
4 changed files with 36 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ Useful in `add-hook' calls."
|
|||
|
||||
(defmacro macros-add-hook-before-save (mode f)
|
||||
"Register a hook, `F', for a mode, `MODE' more conveniently.
|
||||
Usage: (add-hook-before-save 'reason-mode-hook #'refmt-before-save)"
|
||||
Usage: (macros-add-hook-before-save 'reason-mode-hook #'refmt-before-save)"
|
||||
`(add-hook ,mode
|
||||
(lambda ()
|
||||
(add-hook 'before-save-hook ,f))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue