From: Andy Stewart <lazycat.manatee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatic matching parenthesis
Date: Mon, 16 Mar 2009 18:24:48 +0800 [thread overview]
Message-ID: <87iqm9hij3.fsf@debian.domain> (raw)
In-Reply-To: cc03c0bc-477c-4012-bf2f-dd219da0f8eb@p20g2000yqi.googlegroups.com
"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
next prev parent reply other threads:[~2009-03-16 10:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-15 23:31 Automatic matching parenthesis christopher.morris.cm
2009-03-16 10:24 ` Andy Stewart [this message]
[not found] ` <mailman.3311.1237199154.31690.help-gnu-emacs@gnu.org>
2009-03-16 11:02 ` christopher.morris.cm
2009-03-16 11:24 ` Alan Mackenzie
2009-03-18 4:05 ` Kevin Rodgers
2009-03-16 11:36 ` Alan Mackenzie
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=87iqm9hij3.fsf@debian.domain \
--to=lazycat.manatee@gmail.com \
--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).