unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13156: dedicated face for parentheses in lisp modes
@ 2012-12-12 12:19 Jonas Bernoulli
  2012-12-18 15:32 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jonas Bernoulli @ 2012-12-12 12:19 UTC (permalink / raw)
  To: 13156

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

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


[-- Attachment #2: parenface.el --]
[-- Type: application/emacs-lisp, Size: 1403 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-08-12  1:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12 12:19 bug#13156: dedicated face for parentheses in lisp modes Jonas Bernoulli
2012-12-18 15:32 ` Stefan Monnier
2012-12-19 15:46   ` Jonas Bernoulli
2012-12-19 16:20 ` Michael Heerdegen
2012-12-19 18:27   ` Stefan Monnier
2012-12-21 14:29     ` Michael Heerdegen
2012-12-22 15:58       ` Stefan Monnier
2012-12-24 13:45         ` Michael Heerdegen
2013-01-18  2:23         ` Michael Heerdegen
2013-10-15 18:29         ` Michael Heerdegen
2014-08-27 22:46           ` Michael Heerdegen
2019-08-12  1:05 ` Stefan Kangas

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).