|
From: | Bernardo |
Subject: | Re: keyboard-translate working for Control but not for Alt |
Date: | Thu, 06 Aug 2009 21:01:18 +1000 |
User-agent: | Thunderbird 2.0.0.22 (X11/20090605) |
You can use (define-key key-translation-map [?\M-x] [?\M-t]) (define-key key-translation-map [?\M-t] [?\M-x])That does not work. No errors when evaluating the expressions, but then both M-x and M-t don't work anymore (they just output 't' and 'x').
don't know, both the above and the following format work here (GNU/Linux): (define-key key-translation-map [(meta x)] [(meta t)])not sure if it's any different under the hood but you may also want to try this variation:
(keyboard-translate ?\M-x ?\M-t)
[Prev in Thread] | Current Thread | [Next in Thread] |