pre-command-hookbefore each command, and runs
post-command-hookafter each command.
auto-save-hookbefore actually starting to save any files.
revert-buffer-insert-file-contents-functionholds a function that
revert-buffernow uses to read in the contents of the reverted buffer--instead of calling
lisp-indent-hookhas been renamed to
auto-fill-hookhas been renamed to
blink-paren-hookhas been renamed to
temp-buffer-show-hookhas been renamed to
suspend-hookis now a normal hook. It used to be a special kind of hook; its value had to be a single function, and if the function returned a non-
nilvalue, then suspension was inhibited.
add-hookprovides a handy way to add a function to a hook variable. For example,
(add-hook 'text-mode-hook 'my-text-hook-function)arranges to call
my-text-hook-functionwhen entering Text mode or related modes.
add-hooktakes an optional third argument which says to add the new hook function at the end of the list (normally, it goes at the beginning).