[Top][All Lists]

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

Re: add-hook

From: Teemu Likonen
Subject: Re: add-hook
Date: Sat, 04 Jun 2011 17:11:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

* 2011-06-04T15:00:46+02:00 * daniele g. wrote:

> Is that syntax correct?
> (add-hook 'c-mode-common-hook
>         '(lambda ()
>            'hs-minor-mode
>            'linum-mode
>            (local-set-key [(control return)] 
>                           'semantic-ia-complete-symbol-menu)))

It is correct Emacs Lisp syntax but most likely the behaviour is not
what you want. I believe you want this:

    (add-hook 'c-mode-common-hook
              (lambda ()
                (hs-minor-mode 1)
                (linum-mode 1)
                (local-set-key [(control return)] 

reply via email to

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