Merge from origin/emacs-29
8f62e7b85f
Describe primarily the Emacs s-exp dialect for treesit qu...eacd75df4e
; Improve documentation of overlay prioritiesb3f11e94fa
Fix documentation of :predicate in 'define-globalized-min...
This commit is contained in:
commit
5fa9458511
4 changed files with 123 additions and 108 deletions
|
@ -453,14 +453,17 @@ TURN-ON is a function that will be called with no args in every buffer
|
|||
and that should try to turn MODE on if applicable for that buffer.
|
||||
|
||||
Each of KEY VALUE is a pair of CL-style keyword arguments.
|
||||
The :predicate argument specifies in which major modes should the
|
||||
The :predicate key specifies in which major modes should the
|
||||
globalized minor mode be switched on. The value should be t (meaning
|
||||
switch on the minor mode in all major modes), nil (meaning don't
|
||||
switch on in any major mode), a list of modes (meaning switch on only
|
||||
in those modes and their descendants), or a list (not MODES...),
|
||||
meaning switch on in any major mode except MODES. The value can also
|
||||
mix all of these forms, see the info node `Defining Minor Modes' for
|
||||
details.
|
||||
details. The :predicate key causes the macro to create a user option
|
||||
named the same as MODE, but ending with \"-modes\" instead of \"-mode\".
|
||||
That user option can then be used to customize in which modes this
|
||||
globalized minor mode will be switched on.
|
||||
As the minor mode defined by this function is always global, any
|
||||
:global keyword is ignored.
|
||||
Other keywords have the same meaning as in `define-minor-mode',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue