help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: show-paren-mode / blink-matching-paren


From: Nikolaj Schumacher
Subject: Re: show-paren-mode / blink-matching-paren
Date: Mon, 11 Aug 2008 12:42:11 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

Dan Davison <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]