[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13156: dedicated face for parentheses in lisp modes
From: |
Jonas Bernoulli |
Subject: |
bug#13156: dedicated face for parentheses in lisp modes |
Date: |
Wed, 12 Dec 2012 13:19:07 +0100 |
User-agent: |
mu4e 0.9.9.5-dev4; emacs 24.3.50.1 |
Hello
Could you please add a `paren-face' that could be used in lisp modes
(and possibly others) to dim (or highlight) parentheses. I am currently
using the attached library to do this but think it would make sense if
this functionality was built-in.
Being very simple `parenface.el' just unconditionally adds an additional
keyword to `[lisp|scheme]-font-lock-keywords' when loaded.
I see two ways of implementing this as part of Emacs.
1. Add the keyword to `[lisp|scheme]-font-lock-keywords-2' directly and
let `paren-face' inherit from `default'. Users who actually want
parens to be dimmed or highlight can then customize the former.
2. Define a local minor mode that adds the additional keywords.
I would prefer (1) but maybe that is not an option because it might
negatively affects font-lock's performance.
If this has to be a mode then I am happy to write it. I haven't done
so yet because `parenface.el' works fine for me and because I would
actually prefer (1).
Thanks for considering,
Jonas
parenface.el
Description: application/emacs-lisp
- bug#13156: dedicated face for parentheses in lisp modes,
Jonas Bernoulli <=