From 6a2cdc67fa7607d5f77aee053a62773533cd5e7b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 12 Feb 2021 14:19:50 +0100 Subject: [PATCH] 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 ce7727b87eb..3c64e97b3b9 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 -- 2.39.5