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

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

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


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

Hello the group.

I want to add a function to several hooks using dolist, but it doesn't work as I thought. I know the reason is that the hook in the list is not recgonized as a list, but I don't know how to fix it. Any help?

(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))




reply via email to

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