unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).