[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: |
Drew Adams |
Subject: |
RE: how to use "dolist" if it's elements are also list |
Date: |
Tue, 3 Nov 2009 21:00:27 -0800 |
> (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.