diff options
| author | Richard M. Stallman | 2005-02-14 10:25:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-14 10:25:20 +0000 |
| commit | bf614499ff2a69f0796f30e5a29afd35465cfd3e (patch) | |
| tree | 746ba7feae6a1d77deb8e6d0f4be9153f84dc10d | |
| parent | aac757583530c80179362e01d5c9b4d17b59ab40 (diff) | |
| download | emacs-bf614499ff2a69f0796f30e5a29afd35465cfd3e.tar.gz emacs-bf614499ff2a69f0796f30e5a29afd35465cfd3e.zip | |
(Creating Buffer-Local): change-major-mode-hook
is useful for discarding some minor modes.
| -rw-r--r-- | lispref/variables.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi index 1f793b8f03f..de5fb40618f 100644 --- a/lispref/variables.texi +++ b/lispref/variables.texi | |||
| @@ -1429,8 +1429,11 @@ variables that major modes set should not be marked permanent. | |||
| 1429 | The function @code{kill-all-local-variables} runs this normal hook | 1429 | The function @code{kill-all-local-variables} runs this normal hook |
| 1430 | before it does anything else. This gives major modes a way to arrange | 1430 | before it does anything else. This gives major modes a way to arrange |
| 1431 | for something special to be done if the user switches to a different | 1431 | for something special to be done if the user switches to a different |
| 1432 | major mode. For best results, make this variable buffer-local, so that | 1432 | major mode. It is also useful for buffer-specific minor modes |
| 1433 | it will disappear after doing its job and will not interfere with the | 1433 | that should be forgotten if the user changes the major mode. |
| 1434 | |||
| 1435 | For best results, make this variable buffer-local, so that it will | ||
| 1436 | disappear after doing its job and will not interfere with the | ||
| 1434 | subsequent major mode. @xref{Hooks}. | 1437 | subsequent major mode. @xref{Hooks}. |
| 1435 | @end defvar | 1438 | @end defvar |
| 1436 | 1439 | ||