diff options
author | Glenn Morris <rgm@gnu.org> | 2020-01-16 21:53:37 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2020-01-16 21:53:37 -0800 |
commit | e135414b271e71c16e28efc2e3f29b803ab67424 (patch) | |
tree | e124d1661f105225a2f8d8074c8f4b1ff48cd712 /doc/misc/speedbar.texi | |
parent | e32bae617788bc22f2d6643d920ebcafa70a002d (diff) | |
download | emacs-e135414b271e71c16e28efc2e3f29b803ab67424.tar.gz emacs-e135414b271e71c16e28efc2e3f29b803ab67424.tar.bz2 emacs-e135414b271e71c16e28efc2e3f29b803ab67424.zip |
Replace doc references to load-hooks
with-eval-after-load is a cleaner, standard feature that works
for every file
* doc/misc/calc.texi (Hooks):
* doc/misc/dired-x.texi (Installation)
(Optional Installation File At Point, Omitting Files in Dired)
(Omitting Examples, Find File At Point):
* doc/misc/ediff.texi (Hooks, Selective Browsing)
(Highlighting Difference Regions):
* doc/misc/efaq.texi (Disabling backups):
* doc/misc/gnus.texi (Startup Variables):
* doc/misc/idlwave.texi (Structure Tag Completion, Misc Options):
* doc/misc/org.texi (Handling Links):
* doc/misc/reftex.texi (Key Bindings, Keymaps and Hooks):
* doc/misc/sem-user.texi (Speedbar):
* doc/misc/speedbar.texi (Hooks, Minor Display Modes):
* doc/misc/viper.texi (Rudimentary Changes):
Replace load-hooks with with-eval-after-load
Diffstat (limited to 'doc/misc/speedbar.texi')
-rw-r--r-- | doc/misc/speedbar.texi | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/misc/speedbar.texi b/doc/misc/speedbar.texi index 57ad0220103..c9c3daf963b 100644 --- a/doc/misc/speedbar.texi +++ b/doc/misc/speedbar.texi @@ -828,9 +828,6 @@ Hooks run when speedbar visits a file in the selected frame. @cindex @code{speedbar-visiting-tag-hook} @item speedbar-visiting-tag-hook Hooks run when speedbar visits a tag in the selected frame. -@cindex @code{speedbar-load-hook} -@item speedbar-load-hook -Hooks run when speedbar is loaded. @cindex @code{speedbar-reconfigure-keymaps-hook} @item speedbar-reconfigure-keymaps-hook Hooks run when the keymaps are regenerated. Keymaps are reconfigured @@ -913,12 +910,11 @@ bindings: This function creates a special keymap for use in speedbar. @item -Call your install function, or assign it to a hook like this: +Call your install function, like this: @smallexample -(if (featurep 'speedbar) - (@var{name}-install-speedbar-variables) - (add-hook 'speedbar-load-hook '@var{name}-install-speedbar-variables)) +(with-eval-after-load 'speedbar + (@var{name}-install-speedbar-variables)) @end smallexample @item |