all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to use "dolist" if it's elements are also list
@ 2009-11-04  4:31 Chris
  2009-11-04  5:00 ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Chris @ 2009-11-04  4:31 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-04  5:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.10024.1257309084.2239.help-gnu-emacs@gnu.org>
2009-11-04  4:56 ` how to use "dolist" if it's elements are also list Pascal J. Bourguignon
2009-11-04  4:31 Chris
2009-11-04  5:00 ` Drew Adams
2009-11-04  5:54   ` Chris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.