/[emacs]/emacs/lispref/modes.texi
ViewVC logotype

Diff of /emacs/lispref/modes.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.100 by lute, Thu May 12 13:20:56 2005 UTC revision 1.101 by rms, Sat May 14 13:59:41 2005 UTC
# Line 1184  written a @code{defgroup} to define that Line 1184  written a @code{defgroup} to define that
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.
# Line 1266  See the command \\[hungry-electric-delet Line 1267  See the command \\[hungry-electric-delet
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

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26