mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(Creating Buffer-Local): change-major-mode-hook
is useful for discarding some minor modes.
This commit is contained in:
parent
aac7575835
commit
bf614499ff
1 changed files with 5 additions and 2 deletions
|
|
@ -1429,8 +1429,11 @@ variables that major modes set should not be marked permanent.
|
|||
The function @code{kill-all-local-variables} runs this normal hook
|
||||
before it does anything else. This gives major modes a way to arrange
|
||||
for something special to be done if the user switches to a different
|
||||
major mode. For best results, make this variable buffer-local, so that
|
||||
it will disappear after doing its job and will not interfere with the
|
||||
major mode. It is also useful for buffer-specific minor modes
|
||||
that should be forgotten if the user changes the major mode.
|
||||
|
||||
For best results, make this variable buffer-local, so that it will
|
||||
disappear after doing its job and will not interfere with the
|
||||
subsequent major mode. @xref{Hooks}.
|
||||
@end defvar
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue