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

[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 19:00:39 +0000

------- Original Message -------
On Friday, February 11th, 2022 at 5:26 PM, goncholden 
<goncholden@protonmail.com> wrote:
> ------- 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 an existing one using
> > define-derived-mode. If there is no closely related 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.

Have completed the code needed, but now I have got to finish the task of 
putting everything in a derived mode,
which I am finding problematic to say the least.






reply via email to

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