help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using keyword arguments in define-minor-mode


From: Tassilo Horn
Subject: Re: using keyword arguments in define-minor-mode
Date: Fri, 04 Feb 2022 12:38:34 +0100
User-agent: mu4e 1.7.6; emacs 29.0.50

goncholden via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> writes:

> Been advised against the long obsolete form for define-minor-mode, but
> using keyword arguments instead. But need some examples. Particularly
> for indicating in the mode-line.
>
> (define-minor-mode rich-minor-mode
> "docstring"

Have a look at `C-h f define-minor-mode' which explains those keyword
arguments.

(define-minor-mode my-super-mode
  "This is the docstring."
  :lighter "ModeLineIndicator"
  ...)

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]