[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hooks and c/c++-mode
From: |
daniele.g |
Subject: |
Hooks and c/c++-mode |
Date: |
Wed, 11 May 2011 01:42:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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).
- Hooks and c/c++-mode,
daniele.g <=