all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Hooks and c/c++-mode
@ 2011-05-10 23:42 daniele.g
  2011-05-11  0:09 ` Drew Adams
  2011-05-11  0:23 ` Edward O'Connor
  0 siblings, 2 replies; 4+ messages in thread
From: daniele.g @ 2011-05-10 23:42 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a smart way to set a hook for several modes at once? Maybe
using a regex or similar.

For example:

--8<---------------cut here---------------start------------->8---
(add-hook '{c|c++}-mode-hook
	  '(lambda ()
	     'do-something )))
--8<---------------cut here---------------end--------------->8---

Thanks in advance.
-- 
           Posteggiare, v.:
           	Leggere, scrivere e spedire posta (elettronica).




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

end of thread, other threads:[~2011-05-11  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 23:42 Hooks and c/c++-mode daniele.g
2011-05-11  0:09 ` Drew Adams
2011-05-11  0:23 ` Edward O'Connor
2011-05-11  7:41   ` daniele.g

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.