all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jonas Bernoulli <jonas@bernoul.li>
To: 13156@debbugs.gnu.org
Subject: bug#13156: dedicated face for parentheses in lisp modes
Date: Wed, 12 Dec 2012 13:19:07 +0100	[thread overview]
Message-ID: <87ip87xy2s.fsf@bernoul.li> (raw)

[-- 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 --]

             reply	other threads:[~2012-12-12 12:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 12:19 Jonas Bernoulli [this message]
2012-12-18 15:32 ` bug#13156: dedicated face for parentheses in lisp modes 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip87xy2s.fsf@bernoul.li \
    --to=jonas@bernoul.li \
    --cc=13156@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.