1184 |
Definitions}. |
Definitions}. |
1185 |
|
|
1186 |
@item :global @var{global} |
@item :global @var{global} |
1187 |
If non-@code{nil} specifies that the minor mode should be global. |
If non-@code{nil} specifies that the minor mode should be global. By |
1188 |
By default, minor modes are buffer-local. |
default, minor modes defined with @code{define-minor-mode} are |
1189 |
|
buffer-local. |
1190 |
|
|
1191 |
@item :init-value @var{init-value} |
@item :init-value @var{init-value} |
1192 |
This is equivalent to specifying @var{init-value} positionally. |
This is equivalent to specifying @var{init-value} positionally. |
1267 |
:group 'hunger) |
:group 'hunger) |
1268 |
@end smallexample |
@end smallexample |
1269 |
|
|
1270 |
|
@defmac define-global-minor-mode global-mode mode turn-on keyword-args... |
1271 |
|
This defines a global minor mode named @var{global-mode} whose meaning |
1272 |
|
is to enable the buffer-local minor mode @var{mode} in every buffer. |
1273 |
|
To turn on the minor mode in a buffer, it uses the function |
1274 |
|
@var{turn-on}; to turn off the minor mode, it calls @code{mode} with |
1275 |
|
@minus{}1 as argument. |
1276 |
|
|
1277 |
|
Use @code{:group @var{group}} in @var{keyword-args} to specify the |
1278 |
|
custom group for the mode variable of the global minor mode. |
1279 |
|
@end defmac |
1280 |
|
|
1281 |
@node Mode Line Format |
@node Mode Line Format |
1282 |
@section Mode-Line Format |
@section Mode-Line Format |
1283 |
@cindex mode line |
@cindex mode line |