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

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

Re: Automatic matching parenthesis


From: Alan Mackenzie
Subject: Re: Automatic matching parenthesis
Date: Mon, 16 Mar 2009 11:24:50 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386))

address@hidden <address@hidden> wrote:
> On 16 Mrz., 11:24, Andy Stewart <address@hidden> wrote:
>> "address@hidden"

>> <address@hidden> 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).



reply via email to

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