From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dgiglio@iol.it (daniele.g) Newsgroups: gmane.emacs.help Subject: Hooks and c/c++-mode Date: Wed, 11 May 2011 01:42:20 +0200 Message-ID: <87k4dyp1gj.fsf@father.nostromo.wy> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1305071776 1341 80.91.229.12 (10 May 2011 23:56:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 23:56:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 11 01:56:12 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJwmh-0004j7-Rf for geh-help-gnu-emacs@m.gmane.org; Wed, 11 May 2011 01:56:12 +0200 Original-Received: from localhost ([::1]:52523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJwmh-0000gj-Fn for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2011 19:56:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJwmc-0000gV-MY for help-gnu-emacs@gnu.org; Tue, 10 May 2011 19:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJwmb-0004Xy-RK for help-gnu-emacs@gnu.org; Tue, 10 May 2011 19:56:06 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:46423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJwmb-0004Xu-Lc for help-gnu-emacs@gnu.org; Tue, 10 May 2011 19:56:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJwmY-0004eZ-Js for help-gnu-emacs@gnu.org; Wed, 11 May 2011 01:56:02 +0200 Original-Received: from 151.54.40.92 ([151.54.40.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2011 01:56:02 +0200 Original-Received: from dgiglio by 151.54.40.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2011 01:56:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 151.54.40.92 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAACXBIWXMAABwgAAAcIAHND5ue AAAB20lEQVRIx+1UwZHkMAjUg5/+SoKcCIlQyIUolIC+VF0jeXwey7NXu3XP5WGrME03BlTKr/3a fza6vV8nuhy2eKJ81UJ0uGp9w9wtv5KItgXGQ1T4UzhlPIv3cCps5omTCDdpB+VNUS1Ne0R0btLd IgQ+hSNcnjiosuPjCCs4OLAGL3d4oittkJQR07hU1pGJ4W4GwIguDxVLpo9UQpk4AUTNJit0bhQp aNZgjWiSKf6CpEd9pbkpQsqZD/p1iXO1xQly2wBwqow+Sa5mFiZ9BxAY1EJT2TijcRJ8kD58K1rG BOgRd5pLDDDcAUvSC3C1LmMgmW+tS4A+AFx6T4b2BLAQ2xleAPoWAJ27ma4aAPBLdM+Ku/gOID0Z 5PyzA55PgJqRC4AfeTQhT0Pc4e3vs0EL4BNgfHaZT8A2TH8ZhhR/dbnYBXCTBJkJcOeKVs3VAwMp CuhPDC0BkCQZH5YceHgjxr5OQH0AGOTUObazAiQARzP/wODMPLdYm6+WYXSxzUXAEnoDcDdeQ9gH Fib7MDrrMUOQeQdUruv3Ou4uyRqGKYvkFZORvI3GcSO2vLZyX7Eec8QW7/NVeUHmFq+ci/jr6Ewo ui4W+jr3z2wq/kFm+pf4t8jvMnwR/QfF+ETqNfjAZQAAAA90RVh0SlBFRy1RdWFsaXR5ADkwMFHs kQAAABF0RVh0SlBFRy1Db2xvcnNwYWNlADKBDSEkAAAAIXRFWHRKUEVHLVNhbXBsaW5nLWZhY3Rv cnMAMngyLDF4MSwxeDHlUdu4AAAAAElFTkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:3r6ea85jjpO+sk5JL0daCyUro5k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80960 Archived-At: 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).