From: Jonas Bernoulli <jonas@bernoul.li>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: 13156@debbugs.gnu.org
Subject: bug#13156: dedicated face for parentheses in lisp modes
Date: Wed, 19 Dec 2012 16:46:16 +0100 [thread overview]
Message-ID: <877goe6o53.fsf@bernoul.li> (raw)
In-Reply-To: <jwv7gof1jeo.fsf-monnier+emacs@gnu.org>
Stefan Monnier writes:
>> 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.
>
> I don't think it's sufficiently useful in general.
What about all the Emacs users that are scared of lisp "because of all
the parens"? Dimming them might reduce the shock :-)
>> Being very simple `parenface.el' just unconditionally adds an additional
>> keyword to `[lisp|scheme]-font-lock-keywords' when loaded.
>
> It could use font-lock-add-keywords.
That's what I was going to do.
> BTW, if all parens are displayed the same, then you can also use the
> buffer-display-table.
Since you are suggesting this I assume that doesn't mess with
highlighting with highlighting matching parens. So I will try that too.
>> 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).
>
> Having it as a separate mode would make more sense, yes.
If you don't change your mind about this not being sufficiently useful
to be built-in, then I will do write a mode; eventually.
Jonas
next prev parent reply other threads:[~2012-12-19 15:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=877goe6o53.fsf@bernoul.li \
--to=jonas@bernoul.li \
--cc=13156@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.