Mercurial > emacs
annotate lispref/hooks.texi @ 15752:c994927cede4
(dabbrev-case-fold-search, dabbrev-case-replace): Undo previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 22 Jul 1996 02:13:10 +0000 |
parents | a6eb5f12b0f3 |
children | bfe1d6597f08 |
rev | line source |
---|---|
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 | |
12098 | 6 @node Standard Hooks, Index, Standard Keymaps, Top |
6440 | 7 @appendix Standard Hooks |
8 | |
7600 | 9 The following is a list of hook variables that let you provide |
6440 | 10 functions to be called from within Emacs on suitable occasions. |
11 | |
7600 | 12 Most of these variables have names ending with @samp{-hook}. They are |
13 @dfn{normal hooks}, run by means of @code{run-hooks}. The value of such | |
14 a hook is a list of functions. The recommended way to put a new | |
6440 | 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 | |
7600 | 20 not a normal hook, such as the need to pass arguments to the function. |
21 (In older Emacs versions, some of these variables had names ending in | |
22 @samp{-hook} even though they were not normal hooks.) | |
6440 | 23 |
7600 | 24 The variables whose names end in @samp{-hooks} or @samp{-functions} have |
25 lists of functions as their values, but these functions are called in a | |
26 special way (they are passed arguments, or else their values are used). | |
6440 | 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 | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
35 @item after-change-functions |
6440 | 36 @item after-init-hook |
37 @item after-insert-file-functions | |
38 @item after-make-frame-hook | |
39 @item auto-fill-function | |
40 @item auto-save-hook | |
41 @item before-change-function | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
42 @item before-change-functions |
6440 | 43 @item before-init-hook |
44 @item before-make-frame-hook | |
45 @item blink-paren-function | |
46 @item c-mode-hook | |
47 @item calendar-load-hook | |
48 @item command-history-hook | |
49 @item comment-indent-function | |
50 @item deactivate-mark-hook | |
51 @item diary-display-hook | |
52 @item diary-hook | |
53 @item dired-mode-hook | |
54 @item disabled-command-hook | |
55 @item edit-picture-hook | |
56 @item electric-buffer-menu-mode-hook | |
57 @item electric-command-history-hook | |
58 @item electric-help-mode-hook | |
59 @item emacs-lisp-mode-hook | |
60 @item find-file-hooks | |
61 @item find-file-not-found-hooks | |
62 @item first-change-hook | |
63 @item fortran-comment-hook | |
64 @item fortran-mode-hook | |
65 @item ftp-setup-write-file-hooks | |
66 @item ftp-write-file-hook | |
67 @item indent-mim-hook | |
68 @item initial-calendar-window-hook | |
69 @item kill-buffer-query-functions | |
70 @item kill-emacs-query-functions | |
71 @item LaTeX-mode-hook | |
72 @item ledit-mode-hook | |
73 @item lisp-indent-function | |
74 @item lisp-interaction-mode-hook | |
75 @item lisp-mode-hook | |
76 @item list-diary-entries-hook | |
77 @item m2-mode-hook | |
78 @item mail-mode-hook | |
79 @item mail-setup-hook | |
80 @item mark-diary-entries-hook | |
81 @item medit-mode-hook | |
82 @item mh-compose-letter-hook | |
83 @item mh-folder-mode-hook | |
84 @item mh-letter-mode-hook | |
85 @item mim-mode-hook | |
86 @item minibuffer-setup-hook | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
87 @item minibuffer-exit-hook |
6440 | 88 @item news-mode-hook |
89 @item news-reply-mode-hook | |
90 @item news-setup-hook | |
91 @item nongregorian-diary-listing-hook | |
92 @item nongregorian-diary-marking-hook | |
93 @item nroff-mode-hook | |
94 @item outline-mode-hook | |
95 @item plain-TeX-mode-hook | |
96 @item post-command-hook | |
97 @item pre-abbrev-expand-hook | |
98 @item pre-command-hook | |
99 @item print-diary-entries-hook | |
100 @item prolog-mode-hook | |
101 @item protect-innocence-hook | |
102 @item rmail-edit-mode-hook | |
103 @item rmail-mode-hook | |
104 @item rmail-summary-mode-hook | |
105 @item scheme-indent-hook | |
106 @item scheme-mode-hook | |
107 @item scribe-mode-hook | |
108 @item shell-mode-hook | |
109 @item shell-set-directory-error-hook | |
110 @item suspend-hook | |
111 @item suspend-resume-hook | |
112 @item temp-buffer-show-function | |
113 @item term-setup-hook | |
114 @item terminal-mode-hook | |
115 @item terminal-mode-break-hook | |
116 @item TeX-mode-hook | |
117 @item text-mode-hook | |
118 @item today-visible-calendar-hook | |
119 @item today-invisible-calendar-hook | |
120 @item vi-mode-hook | |
121 @item view-hook | |
122 @item window-setup-hook | |
123 @item write-contents-hooks | |
124 @item write-file-hooks | |
12098 | 125 @item write-region-annotate-functions |
6440 | 126 @end table |