emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switch Meta and Alt modifiers


From: Kai Großjohann
Subject: Re: Switch Meta and Alt modifiers
Date: Fri, 15 Feb 2002 10:38:53 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu)

address@hidden (Kai Großjohann) writes:

> WIBNI the user could tell Emacs to swap the meanings of the Alt and
> Meta modifier?  Or to tell Emacs that mod1 is Meta, even if
> x_find_modifier_meanings finds Alt_L and Alt_R there?

I have now committed something which does this.  There are new
variables x-{alt,hyper,meta,super}-keysym.  Allowed values are the
symbols alt, hyper, meta, and super.  So to switch the alt and meta
keys, one can do:

(setq x-alt-keysym 'meta)
(setq x-meta-keysym 'alt)

There might be unexpected side effects with the "use alt as meta if
there is no meta key" mechanism that's already in Emacs: If you (setq
x-alt-keysym 'meta) but the kbd doesn't have a meta key, then Emacs
will use the alt keys for the alt keysym.

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]