From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Glen Coates" Newsgroups: gmane.emacs.help Subject: rebind key in a single major mode Date: Thu, 23 Jan 2003 00:52:22 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: main.gmane.org 1043283498 18902 80.91.224.249 (23 Jan 2003 00:58:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2003 00:58:18 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bVhB-0004uj-00 for ; Thu, 23 Jan 2003 01:58:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bVeo-0005HR-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 22 Jan 2003 19:55:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail User-Agent: Pan/0.13.0 (The whole remains beautiful) Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 130.155.197.186 Original-X-Trace: news.optus.net.au 1043283142 130.155.197.186 (Thu, 23 Jan 2003 11:52:22 EST) Original-NNTP-Posting-Date: Thu, 23 Jan 2003 11:52:22 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:109368 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5890 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5890 Hi, I've currently got the enter key bound to C-j in all modes because it makes indenting so much easier, however, in gdb-mode this means I have to hit C-m instead of enter because gdb-mode doesn't recognise C-j as the newline character (I think). What do I need to put in my .emacs in order to rebind enter to C-m for gdb-mode only? -- Cheers, Glen