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.