emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-maximum-decoration and how to make a default font-lock low


From: Stefan Monnier
Subject: Re: font-lock-maximum-decoration and how to make a default font-lock lower than maximal?
Date: Tue, 21 Aug 2012 13:24:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> For example, assume you are developing X-mode and some users would like
> to have functions + numbers + other stuff highlighted, but you don't
> want to activate those by default. So you can add font-lock keyword
> levels (2, 3, 4 etc) to accommodate this preference, but want to set the
> default to 2.

I hate font-lock-maximum-decoration's notion of "levels" because there
is no such neat line.  Some users will care about one particular detail,
others about an other.  So please don't use font-lock's levels for that
fine-grained control.  Instead just introduce new config vars specific
to your major mode.


        Stefan



reply via email to

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