From: Nikolaj Schumacher <n_schumacher@web.de>
To: help-gnu-emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: show-paren-mode / blink-matching-paren
Date: Mon, 11 Aug 2008 12:42:11 +0200 [thread overview]
Message-ID: <m2hc9rzvcs.fsf@nschum.de> (raw)
In-Reply-To: <20080811083815.GA4163@stats.ox.ac.uk> (Dan Davison's message of "Mon\, 11 Aug 2008 09\:38\:15 +0100")
Dan Davison <davison@stats.ox.ac.uk> wrote:
> What I'm after is the following:
> whenever I'm curious about what the matching paren is of some closing
> paren, I can move point to after the closing paren, and it will show
> me, for a second or so.
Call `blink-matching-open' from an idle timer.
> q2. A basic question: In my .emacs I'd like to turn on
> e.g. show-paren-mode in e.g. emacs-lisp mode only. How do I do that?
> Adding (show-paren-mode t) to my personal emacs-lisp mode hook turns
> it on in all buffers, right?
`show-paren-mode' is a global mode, so there is no obvious way.
Looking at the implementation, the following should work, though:
(show-paren-mode t)
(setq show-paren-mode nil)
And in the elisp hook:
(set (make-local-variable 'show-paren-mode) t)
regards,
Nikolaj Schumacher
next prev parent reply other threads:[~2008-08-11 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 8:38 show-paren-mode / blink-matching-paren Dan Davison
2008-08-11 10:42 ` Nikolaj Schumacher [this message]
[not found] <mailman.16353.1218443902.18990.help-gnu-emacs@gnu.org>
2008-08-11 8:46 ` Richard G Riley
2008-08-11 10:18 ` Dan Davison
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2hc9rzvcs.fsf@nschum.de \
--to=n_schumacher@web.de \
--cc=help-gnu-emacs@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.
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).