1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Allow minor modes to specify major modes they're useful in

This commit is contained in:
Lars Ingebrigtsen 2021-02-12 14:19:50 +01:00
parent 3a4b65177f
commit 6a2cdc67fa

View file

@ -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