I use the rainbow-delimiters
package, which gives you up to 9 faces to set parentheses
this post was submitted on 30 Nov 2023
2 points (100.0% liked)
Emacs
311 readers
1 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
9?
Holy cow. It may have been RMS who said if you are even "four-deep" it's time to refactor.
No clue about RMS, but I know for a fact Torvalds said that.
I also use rainbow-delimiters, but they are a bit too bright in my dark theme, so I:
(use-package rainbow-delimiters
:config
;; Darken them a bit
(cl-loop for f in (face-list)
if (and (string-prefix-p "rainbow-delimiters" (symbol-name f))
(face-foreground f)) do
(set-face-foreground f (color-darken-name (face-foreground f) 15))))
See also color-lighten-name
to go the other way.
See the paren-face package. The diagram you mention sounds like the one in the repository README. (I think the diagram has been used in longer article too, but I'm not sure where it originated.)