by IvarTJ · 15y ago · 0 comments
I am not experienced reading Lisp code, but I find the many levels of indentation and the abundance of parentheses overwhelming. I don’t know if this is the case with Common Lisp code.
In Chicken Scheme however, parentheses are interchangable with other brackets – so you can add visual cues through your style if you don’t care much about portability.
(defface paren-face '((((class color) (background dark)) (:foreground "grey20")) (((class color) (background light)) (:foreground "grey70"))) "Face used to dim parentheses.")
(add-hook 'scheme-mode-hook (lambda () (font-lock-add-keywords nil '(("(\\|)" . 'paren-face)))))
I also came across a blog post[1] which includes a slightly more complete solution.