[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6a2cdc6: Allow minor modes to specify major modes they're useful
From: |
Lars Ingebrigtsen |
Subject: |
master 6a2cdc6: Allow minor modes to specify major modes they're useful in |
Date: |
Fri, 12 Feb 2021 08:20:15 -0500 (EST) |
branch: master
commit 6a2cdc67fa7607d5f77aee053a62773533cd5e7b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Allow minor modes to specify major modes they're useful in
---
doc/lispref/modes.texi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index ce7727b..3c64e97 100644
--- 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 6a2cdc6: Allow minor modes to specify major modes they're useful in,
Lars Ingebrigtsen <=