this post was submitted on 22 Nov 2023
0 points (50.0% liked)

Emacs

313 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Starlight100@alien.top 1 points 1 year ago

I love the new treesit faces. But agree when literally everything has an attention drawing color, then nothing does.

What works for me is to disable special colors for variable use, only var declartion.

(custom-theme-set-faces
 (or (car custom-enabled-themes) 'user) ; current theme

 ;; attention drawing color for var definitions.
 `(font-lock-variable-name-face ((t (:foreground "cyan" :background "black"))))

 ;; normal color for var-use. To avoid color spagetti. (new treesit face)
 `(font-lock-variable-use-face ((t :inherit default))))