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

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

Re: how to use "dolist" if it's elements are also list


From: Chris
Subject: Re: how to use "dolist" if it's elements are also list
Date: Wed, 04 Nov 2009 13:54:56 +0800
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Drew Adams wrote:
(dolist
    (the-hook
     '(c-mode-common-hook
       java-mode-hook
       perl-mode-hook
       php-mode-hook
       emacs-lisp-mode-hook))
  (add-hook 'the-hook 'my-common-key-binding))
    

Don't quote the-hook. You want its value. The value of 'the-hook is the symbol
the-hook itself, not the value of that symbol.

  
thanks for your help. it now works.

reply via email to

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