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

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

"christopher.morris.cm@googlemail.com"
<christopher.morris.cm@googlemail.com> 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?
At http://www.emacswiki.org/emacs/ParEdit

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.

Regards,

  -- Andy





reply via email to

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