From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: c++ and c common mode Date: Wed, 13 Dec 2006 18:57:45 +0100 Organization: disorganized Message-ID: <878xhbsmp2.fsf@localhorst.mine.nu> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166033406 346 80.91.229.10 (13 Dec 2006 18:10:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 18:10:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 13 19:10:04 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuYYM-0002fk-Hh for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2006 19:10:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuYYM-0005F2-1N for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2006 13:10:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuYXK-0004jG-30 for help-gnu-emacs@gnu.org; Wed, 13 Dec 2006 13:08:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuYXH-0004hU-NU for help-gnu-emacs@gnu.org; Wed, 13 Dec 2006 13:08:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuYXH-0004hK-Hi for help-gnu-emacs@gnu.org; Wed, 13 Dec 2006 13:08:55 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuYXH-00041A-31 for help-gnu-emacs@gnu.org; Wed, 13 Dec 2006 13:08:55 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GuYXD-0003G4-H5 for help-gnu-emacs@gnu.org; Wed, 13 Dec 2006 19:08:51 +0100 Original-Received: from e178033236.adsl.alicedsl.de ([85.178.33.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 19:08:51 +0100 Original-Received: from david.hansen by e178033236.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 19:08:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178033236.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:oF8zyW5bu2KfQ4HyYjzo5Yx5oE8= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39519 Archived-At: On Wed, 13 Dec 2006 14:52:31 +0100 Hadron Quark wrote: > The one line I *did* have to duplicate was the define-key to add to both > keyboard maps: > > > ,---- > | (let ((dl '( > | ([f1] . jump-man-page) > | ([backtab] . semantic-ia-complete-symbol) > | ([f5] . find-tag-noconfirm) > | ([f6] . find-tag-repeat) > | ([f7] . pop-tag-mark) > | ([f2] . gdb-restore-windows) > | ([f10] . compile) > | ([f11] . next-error) > | ([f12] . gdba)))) > | (dolist (i dl) > | (define-key c-mode-map (car i) (cdr i)) > | (define-key c++-mode-map (car i) (cdr i)) > | )) > `---- > > is there a better way? Some common "subset" for "c like" files? Use `c-mode-base-map' or if needed `local-set-key'. David