[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)) |
christopher.morris.cm@googlemail.com <christopher.morris.cm@googlemail.com>
wrote:
> On 16 Mrz., 11:24, Andy Stewart <lazycat.mana...@gmail.com> wrote:
>> "christopher.morris...@googlemail.com"
>> <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).