about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/macros.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-02T13·49+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-02T13·49+0100
commit924c7fa4199235a929ecd6a68a09b7e4acd36352 (patch)
treecf18d000d70f2f3c1eb97d30a5d1f65686d0ca05 /emacs/.emacs.d/wpc/macros.el
parent71e57700d60a2573fca069dfa8fc90e928561dcf (diff)
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.
Diffstat (limited to 'emacs/.emacs.d/wpc/macros.el')
-rw-r--r--emacs/.emacs.d/wpc/macros.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/macros.el b/emacs/.emacs.d/wpc/macros.el
index 715ca3e43ced..07b88d8f5860 100644
--- a/emacs/.emacs.d/wpc/macros.el
+++ b/emacs/.emacs.d/wpc/macros.el
@@ -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))))