Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
14bafd7e
Commit
14bafd7e
authored
Jan 02, 2007
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Defining Minor Modes): Explain effect of command
defined with define-global-minor-mode on new buffers.
parent
d0076741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lispref/modes.texi
lispref/modes.texi
+6
-3
No files found.
lispref/modes.texi
View file @
14bafd7e
...
...
@@ -1480,12 +1480,15 @@ See the command \\[hungry-electric-delete]."
@end smallexample
@defmac define-global-minor-mode global-mode mode turn-on keyword-args@dots{}
This defines a global
minor mod
e named @var{global-mode} whose meaning
is
to enable the buffer-local minor mode @var{mode} in
every buffer.
To turn on the minor mode in a buffer, it uses the function
This defines a global
toggl
e named @var{global-mode} whose meaning
is
to enable
or disable
the buffer-local minor mode @var{mode} in
all
buffers.
To turn on the minor mode in a buffer, it uses the function
@var{turn-on}; to turn off the minor mode, it calls @code{mode} with
@minus{}1 as argument.
Globally enabling the mode also affects buffers subsequently created
by visiting files, but not buffers subsequently created in other ways.
Use @code{:group @var{group}} in @var{keyword-args} to specify the
custom group for the mode variable of the global minor mode.
@end defmac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment