help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hooks and c/c++-mode


From: Edward O'Connor
Subject: Re: Hooks and c/c++-mode
Date: Tue, 10 May 2011 17:23:43 -0700

> 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---

`c-mode-common-hook' is your friend. :)


Ted



reply via email to

[Prev in Thread] Current Thread [Next in Thread]