[Top][All Lists]

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

Re: Automatic matching parenthesis

From: Andy Stewart
Subject: Re: Automatic matching parenthesis
Date: Mon, 16 Mar 2009 18:24:48 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

<address@hidden> writes:

> Hi,
> added these lines to my .emacs-file, so that parenthesis are
> automatically matched:
> (setq skeleton-pair t)
> (global-set-key (kbd "(") 'skeleton-pair-insert-maybe)
> (global-set-key (kbd "{") 'skeleton-pair-insert-maybe)
> But it does not work in cc-mode. Any idea?
Why not use paredit.el?

It can complete your parenthesis, it won't complete paranthesis when you
type in comment.

I think paredit.el is very nice for parenthesis completion.


  -- Andy

reply via email to

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