unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Augusto Stoffel <arstoffel@gmail.com>
To: emacs-devel@gnu.org
Subject: Toning down font-lock
Date: Sat, 05 Mar 2022 19:03:26 +0100	[thread overview]
Message-ID: <87v8wscm4x.fsf@gmail.com> (raw)

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.



             reply	other threads:[~2022-03-05 18:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-05 18:03 Augusto Stoffel [this message]
2022-03-07 16:10 ` Toning down font-lock 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8wscm4x.fsf@gmail.com \
    --to=arstoffel@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).