[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customisation for Comments
From: |
goncholden |
Subject: |
Re: Customisation for Comments |
Date: |
Fri, 11 Feb 2022 17:26:05 +0000 |
------- Original Message -------
On Thursday, February 10th, 2022 at 11:37 PM, fatiparty--- via Users list for
the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> Feb 10, 2022, 10:59 by help-gnu-emacs@gnu.org:
>
> > Am using modus-vivendi theme to which I add a bold font for everything.
> >
> > I want a special customisation for comments, using normal weight, and
> > having a keybinding that changes the
> >
> > contrast ratio between the comment colour and the background.
> >
> > Had started writing a minor mode, but this seems to be a non-standard
> > implementation. What would be the
> >
> > appropriate way to customise comments as described. Any examples I can use?
>
> In the elisp manual you can find how the recommended way is to derive a mode
> from anexisting one using define-derived-mode. If there is no closelyrelated
> mode, you should inherit from either text-mode,special-mode, or prog-mode.
> Ifnone of these are suitable, you can inherit from fundamental-mode.
>
> Although I have not done this myself, and so unaware of the details.
Have had a look at that. But I need some examples if I am going to have a
successful
implementation. There is not much information except for listings of functions.
Would be most helpful to have a section about implementing derived-modes and
minor-modes.
- Customisation for Comments, goncholden, 2022/02/09
- Re: Customisation for Comments, fatiparty, 2022/02/10
- Re: Customisation for Comments,
goncholden <=
- Re: Customisation for Comments, goncholden, 2022/02/11
- Re: Customisation for Comments, Emanuel Berg, 2022/02/11
- Re: Customisation for Comments, fatiparty, 2022/02/11
- Re: Customisation for Comments, Emanuel Berg, 2022/02/11
- Re: Customisation for Comments, goncholden, 2022/02/11
- Re: Customisation for Comments, Emanuel Berg, 2022/02/11
- Re: Customisation for Comments, goncholden, 2022/02/11
- Re: Customisation for Comments, Emanuel Berg, 2022/02/11
- Re: Customisation for Comments, goncholden, 2022/02/11
- Re: Customisation for Comments, Emanuel Berg, 2022/02/11