all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Toning down font-lock
@ 2022-03-05 18:03 Augusto Stoffel
  2022-03-07 16:10 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Augusto Stoffel @ 2022-03-05 18:03 UTC (permalink / raw)
  To: emacs-devel

I would like to suggest extending `font-lock-maximum-decoration' so that
setting it to a negative number discards all major-mode keyword
fontification, keeping only syntactic highlight (i.e., strings and
comments).

I've been using such a setting for a long time and it's quite pleasant.

I'm also wondering if there is a more fine-grained mechanism to pick and
choose font-lock rules.  I guess not, so should there be one?

In my setup, I do lose some things that I find useful, such as highlight
of regexp grouping constructs or symbol names inside docstrings.
`font-lock-maximum-decoration' doesn't allow to activate these things
without activating coloring of functions and keywords, which I don't
like.  Making some font-lock faces equal to the default face is also a
very coarse measure, and leads to other problems, since the font-lock
faces are often abused for other purposes.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-10  7:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-05 18:03 Toning down font-lock Augusto Stoffel
2022-03-07 16:10 ` Stefan Monnier
2022-03-07 19:25   ` Augusto Stoffel
2022-03-07 23:55     ` Stefan Monnier
2022-03-08 11:50       ` Augusto Stoffel
2022-03-08 15:18         ` Stefan Monnier
2022-03-10  7:42           ` Augusto Stoffel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.