From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "christopher.morris.cm@googlemail.com" Newsgroups: gmane.emacs.help Subject: Re: Automatic matching parenthesis Date: Mon, 16 Mar 2009 04:02:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <92d4e18b-c878-4be0-b3ef-0e07c7a77a10@d19g2000yqb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237267847 18358 80.91.229.12 (17 Mar 2009 05:30:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 05:30:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 06:32:04 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjRuG-0004Ez-10 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 06:32:04 +0100 Original-Received: from localhost ([127.0.0.1]:50967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjRst-0005Ix-Nq for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 01:30:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d19g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 87.186.113.105 Original-X-Trace: posting.google.com 1237201377 1693 127.0.0.1 (16 Mar 2009 11:02:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 16 Mar 2009 11:02:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d19g2000yqb.googlegroups.com; posting-host=87.186.113.105; posting-account=jItn1woAAABzuTNC2Lz3a9LANww8V5E4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030503 Fedora/3.0.7-1.fc10 Firefox/3.0.7, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167674 X-Mailman-Approved-At: Tue, 17 Mar 2009 01:26:14 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62984 Archived-At: On 16 Mrz., 11:24, Andy Stewart wrote: > "christopher.morris...@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? > Athttp://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, > > =A0 -- Andy Thanks alot. But I cant figure out, how to enable paredit alway in c- mode. I tried: (add-hook c-mode-hook (lambda () (paredit-mode +1))). I get an error message starting up emacs. Any idea? Regards, Chris