From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Automatic matching parenthesis Date: Mon, 16 Mar 2009 11:24:50 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <92d4e18b-c878-4be0-b3ef-0e07c7a77a10@d19g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1237203649 4327 80.91.229.12 (16 Mar 2009 11:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2009 11:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 12:42:05 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 1LjBCn-0003H0-5E for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 12:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:58682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjBBR-0007HX-2X for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 07:40:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1237202690 64920 2001:608:1000::2 (16 Mar 2009 11:24:50 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Mon, 16 Mar 2009 11:24:50 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: news.stanford.edu gnu.emacs.help:167675 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:62970 Archived-At: christopher.morris.cm@googlemail.com wrote: > On 16 Mrz., 11:24, Andy Stewart wrote: >> "christopher.morris...@googlemail.com" >> writes: >> > Hi, > 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? Yes. You've forgotten the tick. Try this: (add-hook 'c-mode-hook (lambda () (paredit-mode +1))) ^ HOWEVER: just as a tip for the future, you're more likely to get useful help if you post the actual error message rather than just saying "I get an error message ....". > Regards, > Chris -- Alan Mackenzie (Nuremberg, Germany).