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

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

Re: Customisation for Comments


From: Emanuel Berg
Subject: Re: Customisation for Comments
Date: Fri, 11 Feb 2022 21:19:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

goncholden wrote:

>> then start with a function that increases the contrast by CON.
>
> I have done all that and introduced them into a minor-mode.
> There are a number of minor-modes out there that do provide
> font-lock customization. Extending a major-mode is not
> simple, eg. a derived mode from prog-mode is used to make
> a major-mode, like emacs-lisp-mode (which actually derives
> from lisp-data-mode which derives from prog-mode).
> This means that if I derive from prog-mode, I would need to
> setup the syntax for the major-mode before I can change the
> comment font-locking.

Why do you need modes at all for that?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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