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

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

Re: Novice question: my add-hook binding for c-mode doesnt work :(


From: Anselm Helbig
Subject: Re: Novice question: my add-hook binding for c-mode doesnt work :(
Date: Thu, 01 Dec 2005 14:45:47 +0100
User-agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI)

At Thu, 1 Dec 2005 03:08:14 -0800 (PST),
"Kpoxman (sent by Nabble.com)" <lists@nabble.com> wrote:
> The code from .emacs:
> 
> (add-hook 'c-mode-common-hook
>           '(lambda () (define-key c-mode-map (kbd "M-o") 'kpox-switch-h-cpp))
>           )

remove the quote before the lambda expression. you want the lambda
expression to be evaluated, because it returns an anonymous function. 

regards, 

anselm


reply via email to

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