From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: andrew.maguire@ps.ge.com Newsgroups: gmane.emacs.help Subject: RE: ALT as ALT, Meta as Meta and Keymap Date: Wed, 15 Oct 2003 09:01:18 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA001F0ABBF@ukcbgx01psge.geips.ge.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Trace: sea.gmane.org 1066223131 2443 80.91.224.253 (15 Oct 2003 13:05:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 13:05:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 15:05:29 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9lLF-0005Eb-00 for ; Wed, 15 Oct 2003 15:05:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9lL7-00066g-UF for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2003 09:05:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9lKF-00062k-Ip for help-gnu-emacs@gnu.org; Wed, 15 Oct 2003 09:04:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9lJd-0005oh-J5 for help-gnu-emacs@gnu.org; Wed, 15 Oct 2003 09:04:20 -0400 Original-Received: from [216.35.73.164] (helo=ext-nj2gw-2.online-age.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9lJd-0005oP-5v for help-gnu-emacs@gnu.org; Wed, 15 Oct 2003 09:03:49 -0400 Original-Received: from int-nj2gw-4.online-age.net (int-nj2gw-4 [3.159.236.68]) by ext-nj2gw-2.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id h9FD3bq0009282; Wed, 15 Oct 2003 09:03:41 -0400 (EDT) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) by int-nj2gw-4.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h9FD3XXI029848; Wed, 15 Oct 2003 09:03:37 -0400 (EDT) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id ; Wed, 15 Oct 2003 09:01:24 -0400 Original-To: nicolas.dely@tremplin-utc.net X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:13199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13199 > Hi, (sorry for my bad English, I'm French). > I have a laptop where I have got an azerty/latin0 keyboard. > > I've mapped with xmodmap meta on windows key (it work good) > and i have an > ALT key too but in emacs or during the init, it thinks that > my ALT key is Meta > and I don't want it, I'd rather ALT do Alt. That's why I would like to > know, where alt is defined as Meta, how does the init work? > which files > read it first, the order of the mapping key and the priority. > > Moreover, I would like to know how to define key in latex > mode (add-hook > maybe), that M-a write \alpha, M-D write \Delta or something > like that. > > Eventually if someone knows how to see emacs keymap easily? The following may help... (setq w32-alt-is-meta nil) ;w32-alt-is-meta's value is t ; ;Documentation: ;Non-nil if the alt key is to be considered the same as the meta key. ;When nil, Emacs will translate the alt key to the Alt modifier, and not Meta. (require 'tex-mode) (define-key tex-mode-map "\M-a" '(lambda () (interactive) (insert "\\alpha"))) (define-key tex-mode-map "\M-d" '(lambda () (interactive) (insert "\\Delta"))) Just use C-h v to view keymaps. E.g. C-h v tex-mode-map Andrew