6440
|
1 @c -*-texinfo-*-
|
|
2 @c This is part of the GNU Emacs Lisp Reference Manual.
|
|
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
|
|
4 @c See the file elisp.texi for copying conditions.
|
|
5 @setfilename ../info/hooks
|
|
6 @node Standard Hooks, Antinews, Standard Keymaps, Top
|
|
7 @appendix Standard Hooks
|
|
8
|
|
9 The following is a list of hook variables which let you provide
|
|
10 functions to be called from within Emacs on suitable occasions.
|
|
11
|
|
12 Most of these variables have names ending with @samp{-hook} are
|
|
13 @dfn{normal hooks}, that are run with @code{run-hooks}. The value of
|
|
14 such a hook is a list of functions. The recommended way to put a new
|
|
15 function on such a hook is to call @code{add-hook}. @xref{Hooks}, for
|
|
16 more information about using hooks.
|
|
17
|
|
18 The variables whose names end in @samp{-function} have single functions
|
|
19 as their values. Usually there is a specific reason why the variable is
|
|
20 not a normal hook, such as, the need to pass an argument to the
|
|
21 function. (In older Emacs versions, some of these variables had
|
|
22 names ending in @samp{-hook} even though they were not normal hooks.)
|
|
23
|
|
24 The variables whose names end in @samp{-hooks} have lists of functions
|
|
25 as their values, but these functions are called in a special way (they
|
|
26 are passed arguments, or else their values are used).
|
|
27
|
|
28 @c !!! need xref to where each hook is documented or else document it
|
|
29 @c by specifying what is expected, and when it is called relative to
|
|
30 @c mode initialization.)
|
|
31
|
|
32 @table @code
|
|
33 @item activate-mark-hook
|
|
34 @item after-change-function
|
|
35 @item after-init-hook
|
|
36 @item after-insert-file-functions
|
|
37 @item after-make-frame-hook
|
|
38 @item auto-fill-function
|
|
39 @item auto-save-hook
|
|
40 @item before-change-function
|
|
41 @item before-init-hook
|
|
42 @item before-make-frame-hook
|
|
43 @item blink-paren-function
|
|
44 @item c-mode-hook
|
|
45 @item calendar-load-hook
|
|
46 @item command-history-hook
|
|
47 @item comment-indent-function
|
|
48 @item deactivate-mark-hook
|
|
49 @item diary-display-hook
|
|
50 @item diary-hook
|
|
51 @item dired-mode-hook
|
|
52 @item disabled-command-hook
|
|
53 @item edit-picture-hook
|
|
54 @item electric-buffer-menu-mode-hook
|
|
55 @item electric-command-history-hook
|
|
56 @item electric-help-mode-hook
|
|
57 @item emacs-lisp-mode-hook
|
|
58 @item find-file-hooks
|
|
59 @item find-file-not-found-hooks
|
|
60 @item first-change-hook
|
|
61 @item fortran-comment-hook
|
|
62 @item fortran-mode-hook
|
|
63 @item ftp-setup-write-file-hooks
|
|
64 @item ftp-write-file-hook
|
|
65 @item indent-mim-hook
|
|
66 @item initial-calendar-window-hook
|
|
67 @item kill-buffer-query-functions
|
|
68 @item kill-emacs-query-functions
|
|
69 @item LaTeX-mode-hook
|
|
70 @item ledit-mode-hook
|
|
71 @item lisp-indent-function
|
|
72 @item lisp-interaction-mode-hook
|
|
73 @item lisp-mode-hook
|
|
74 @item list-diary-entries-hook
|
|
75 @item m2-mode-hook
|
|
76 @item mail-mode-hook
|
|
77 @item mail-setup-hook
|
|
78 @item mark-diary-entries-hook
|
|
79 @item medit-mode-hook
|
|
80 @item mh-compose-letter-hook
|
|
81 @item mh-folder-mode-hook
|
|
82 @item mh-letter-mode-hook
|
|
83 @item mim-mode-hook
|
|
84 @item minibuffer-setup-hook
|
|
85 @item news-mode-hook
|
|
86 @item news-reply-mode-hook
|
|
87 @item news-setup-hook
|
|
88 @item nongregorian-diary-listing-hook
|
|
89 @item nongregorian-diary-marking-hook
|
|
90 @item nroff-mode-hook
|
|
91 @item outline-mode-hook
|
|
92 @item plain-TeX-mode-hook
|
|
93 @item post-command-hook
|
|
94 @item pre-abbrev-expand-hook
|
|
95 @item pre-command-hook
|
|
96 @item print-diary-entries-hook
|
|
97 @item prolog-mode-hook
|
|
98 @item protect-innocence-hook
|
|
99 @item rmail-edit-mode-hook
|
|
100 @item rmail-mode-hook
|
|
101 @item rmail-summary-mode-hook
|
|
102 @item scheme-indent-hook
|
|
103 @item scheme-mode-hook
|
|
104 @item scribe-mode-hook
|
|
105 @item shell-mode-hook
|
|
106 @item shell-set-directory-error-hook
|
|
107 @item suspend-hook
|
|
108 @item suspend-resume-hook
|
|
109 @item temp-buffer-show-function
|
|
110 @item term-setup-hook
|
|
111 @item terminal-mode-hook
|
|
112 @item terminal-mode-break-hook
|
|
113 @item TeX-mode-hook
|
|
114 @item text-mode-hook
|
|
115 @item today-visible-calendar-hook
|
|
116 @item today-invisible-calendar-hook
|
|
117 @item vi-mode-hook
|
|
118 @item view-hook
|
|
119 @item window-setup-hook
|
|
120 @item write-contents-hooks
|
|
121 @item write-file-hooks
|
|
122 @item write-region-annotation-functions
|
|
123 @end table
|