From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: How can I bind these two keys? Date: Mon, 10 Apr 2006 21:07:36 +0900 Message-ID: <87hd51prav.fsf@catnip.gol.com> References: <1144610677.752530.197580@i39g2000cwa.googlegroups.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144687385 20474 80.91.229.2 (10 Apr 2006 16:43:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Apr 2006 16:43:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 10 18:43:02 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FSzTU-0007Nb-5Q for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2006 18:42:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSzTT-00069q-Ir for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2006 12:42:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FSvBI-00039c-CN for help-gnu-emacs@gnu.org; Mon, 10 Apr 2006 08:07:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FSvBE-00038E-G4 for help-gnu-emacs@gnu.org; Mon, 10 Apr 2006 08:07:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSvBE-00038A-Bw for help-gnu-emacs@gnu.org; Mon, 10 Apr 2006 08:07:40 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FSvFq-0002tn-Hl; Mon, 10 Apr 2006 08:12:27 -0400 Original-Received: from 203-216-98-065.dsl.gol.ne.jp ([203.216.98.65] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1FSvBA-0004TV-IC; Mon, 10 Apr 2006 21:07:36 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 2E5162F42; Mon, 10 Apr 2006 21:07:36 +0900 (JST) Original-To: help-gnu-emacs@gnu.org System-Type: i686-pc-linux-gnu In-Reply-To: (Alan Mackenzie's message of "Mon, 10 Apr 2006 08:27:57 +0000") Original-Lines: 17 X-Abuse-Complaints: abuse@gol.com X-Mailman-Approved-At: Mon, 10 Apr 2006 12:42:26 -0400 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:34283 Archived-At: Alan Mackenzie writes: > Firstly, you need the name of the "key map" belonging to the mode. > There's no totally systematic way of finding this, but for Text Mode it > is `text-mode-map', for Texinfo Mode it is `texinfo-mode-map', for Emacs > Lisp Mode it is `emacs-lisp-mode-map'. Use C-h v, typing in your guesses > for the name till you find it. For matlab, you probably want to be using "octave-mode" (Octave is the free software equivalent of matlab). Emacs defaults to objc-mode for .m files, so you'll probably have to select the mode manually (until you've overridden the default in auto-mode-alist). The keymap variable for octave-mode is as expected, `octave-mode-map'. -Miles -- Occam's razor split hairs so well, I bought the whole argument!