diff options
| author | Richard M. Stallman | 2002-03-03 20:27:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-03 20:27:25 +0000 |
| commit | 22c94cf2a61f49bde396dbc214b8caa0a892d7ac (patch) | |
| tree | 2ca2c3102cd8cad608888950cb390fb864bec7a0 | |
| parent | 7109132248e4d20f0cbf7d53339ac9761380783c (diff) | |
| download | emacs-22c94cf2a61f49bde396dbc214b8caa0a892d7ac.tar.gz emacs-22c94cf2a61f49bde396dbc214b8caa0a892d7ac.zip | |
(Major Modes): Explain major mode functions, how they work, and how
long the effect lasts.
| -rw-r--r-- | lispref/modes.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index 299595341f8..715eccd64ab 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -35,7 +35,12 @@ user. For related topics such as keymaps and syntax tables, see | |||
| 35 | @cindex Fundamental mode | 35 | @cindex Fundamental mode |
| 36 | 36 | ||
| 37 | Major modes specialize Emacs for editing particular kinds of text. | 37 | Major modes specialize Emacs for editing particular kinds of text. |
| 38 | Each buffer has only one major mode at a time. | 38 | Each buffer has only one major mode at a time. For each major mode |
| 39 | there is a function to switch to that mode in the current buffer; its | ||
| 40 | name should end in @samp{-mode}. These functions work by setting | ||
| 41 | buffer-local variable bindings and other data associated with the | ||
| 42 | buffer, such as a local keymap. The effect lasts until you switch | ||
| 43 | to another major mode in the same buffer. | ||
| 39 | 44 | ||
| 40 | The least specialized major mode is called @dfn{Fundamental mode}. | 45 | The least specialized major mode is called @dfn{Fundamental mode}. |
| 41 | This mode has no mode-specific definitions or variable settings, so each | 46 | This mode has no mode-specific definitions or variable settings, so each |