1 |
@c -*-texinfo-*- |
@c -*-texinfo-*- |
2 |
@c This is part of the GNU Emacs Lisp Reference Manual. |
@c This is part of the GNU Emacs Lisp Reference Manual. |
3 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003, 2004 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, |
4 |
@c Free Software Foundation, Inc. |
@c 2003, 2004, 2005 Free Software Foundation, Inc. |
5 |
@c See the file elisp.texi for copying conditions. |
@c See the file elisp.texi for copying conditions. |
6 |
@setfilename ../info/modes |
@setfilename ../info/modes |
7 |
@node Modes, Documentation, Keymaps, Top |
@node Modes, Documentation, Keymaps, Top |
1098 |
@subsection Defining Minor Modes |
@subsection Defining Minor Modes |
1099 |
|
|
1100 |
The macro @code{define-minor-mode} offers a convenient way of |
The macro @code{define-minor-mode} offers a convenient way of |
1101 |
implementing a mode in one self-contained definition. It supports only |
implementing a mode in one self-contained definition. |
|
buffer-local minor modes, not global ones. |
|
1102 |
|
|
1103 |
@defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]] |
@defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]] |
1104 |
@tindex define-minor-mode |
@tindex define-minor-mode |