unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: andrew.maguire@ps.ge.com
Cc: help-gnu-emacs@gnu.org
Subject: RE: ALT as ALT, Meta as Meta and Keymap
Date: Wed, 15 Oct 2003 09:01:18 -0400	[thread overview]
Message-ID: <6192367D59F8904CA553579EF41FEEA001F0ABBF@ukcbgx01psge.geips.ge.com> (raw)

> 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

             reply	other threads:[~2003-10-15 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15 13:01 andrew.maguire [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-13  9:01 ALT as ALT, Meta as Meta and Keymap Nicolas Dely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6192367D59F8904CA553579EF41FEEA001F0ABBF@ukcbgx01psge.geips.ge.com \
    --to=andrew.maguire@ps.ge.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).