projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4b651
)
Allow minor modes to specify major modes they're useful in
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 12 Feb 2021 13:19:50 +0000
(14:19 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 12 Feb 2021 13:19:55 +0000
(14:19 +0100)
doc/lispref/modes.texi
patch
|
blob
|
history
diff --git
a/doc/lispref/modes.texi
b/doc/lispref/modes.texi
index ce7727b87ebcb1b32071724f871ee81957ee6a8b..3c64e97b3b97975660cb14e5eeb3157752df3219 100644
(file)
--- a/
doc/lispref/modes.texi
+++ b/
doc/lispref/modes.texi
@@
-1730,6
+1730,11
@@
and @var{set} is a function of one argument (a state) that sets it.
@item :after-hook @var{after-hook}
This defines a single Lisp form which is evaluated after the mode hooks
have run. It should not be quoted.
+
+@item :interactive @var{value}
+Minor modes are interactive commands by default. If @var{value} is
+@code{nil}, this is inhibited. If @var{value} is a list of symbols,
+it's used to say which major modes this minor mode is useful in.
@end table
Any other keyword arguments are passed directly to the