[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using keyword arguments in define-minor-mode
From: |
goncholden |
Subject: |
Re: using keyword arguments in define-minor-mode |
Date: |
Fri, 04 Feb 2022 11:51:31 +0000 |
------- Original Message -------
On Friday, February 4th, 2022 at 11:38 AM, Tassilo Horn <tsdh@gnu.org> wrote:
> 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
Tassilo, regarding :init-value, what is it, and how does it work?