all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ALT as ALT, Meta as Meta and Keymap
@ 2003-10-13  9:01 Nicolas Dely
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Dely @ 2003-10-13  9:01 UTC (permalink / 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?

Thanks in advance

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: ALT as ALT, Meta as Meta and Keymap
@ 2003-10-15 13:01 andrew.maguire
  0 siblings, 0 replies; 2+ messages in thread
From: andrew.maguire @ 2003-10-15 13:01 UTC (permalink / raw)
  Cc: help-gnu-emacs

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-15 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-15 13:01 ALT as ALT, Meta as Meta and Keymap andrew.maguire
  -- strict thread matches above, loose matches on Subject: below --
2003-10-13  9:01 Nicolas Dely

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.