Mercurial > emacs
comparison lispref/variables.texi @ 60048:ab86eb33656d
(Creating Buffer-Local): change-major-mode-hook
is useful for discarding some minor modes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 14 Feb 2005 10:25:20 +0000 |
parents | c9aa4127a482 |
children | bd6904d99629 7e3f621f1dd4 |
comparison
equal
deleted
inserted
replaced
60047:16e24b1eba47 | 60048:ab86eb33656d |
---|---|
1427 | 1427 |
1428 @defvar change-major-mode-hook | 1428 @defvar change-major-mode-hook |
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 |
1437 @c Emacs 19 feature | 1440 @c Emacs 19 feature |
1438 @cindex permanent local variable | 1441 @cindex permanent local variable |