From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: keyboard-translate working for Control but not for Alt
Date: Tue, 04 Aug 2009 19:18:54 +0200 [thread overview]
Message-ID: <m24osnts3l.fsf@free.fr> (raw)
In-Reply-To: a3b8e423-7348-4c88-98d8-aa82d91621e7@j21g2000yqe.googlegroups.com
Elena <egarrulo@gmail.com> writes:
> Hello,
>
> since I use a Dvorak keyboard, I'd like to swap C-x and C-t, as it is
> suggested here:
>
> http://www.emacswiki.org/emacs/DvorakKeyboard#toc4
>
> The proposed code performs its task:
>
> http://www.emacswiki.org/emacs/DvorakKeyboard#toc4
>
> (keyboard-translate ?\C-x ?\C-t)
> (keyboard-translate ?\C-t ?\C-x)
>
> Out of curiosity, I tried to swap M-x and M-t as well:
>
> (keyboard-translate ?\M-x ?\M-t)
> (keyboard-translate ?\M-t ?\M-x)
Use instead
(global-set-key (kbd "M-x") 'execute-extended-command)
(global-set-key (kbd "M-t") 'transpose-words)
In contrast to C-x, M-x and M-t are not prefix keys.
So it is not necessary to use a keyboard-translation.
next prev parent reply other threads:[~2009-08-04 17:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-04 14:39 keyboard-translate working for Control but not for Alt Elena
2009-08-04 17:18 ` harven [this message]
2009-08-04 17:20 ` harven
2009-08-04 18:15 ` Xah Lee
2009-08-04 18:37 ` Xah Lee
2009-08-04 18:36 ` Johan Bockgård
2009-08-05 8:07 ` Xah Lee
2009-08-05 22:37 ` Xah Lee
2009-08-06 0:40 ` Xah Lee
2009-08-06 2:29 ` Xah Lee
2009-08-06 16:34 ` B. T. Raven
2009-08-06 21:04 ` Elena
2009-08-06 21:08 ` Elena
2009-08-07 4:02 ` B. T. Raven
2009-08-07 4:06 ` B. T. Raven
[not found] ` <mailman.3870.1249411036.2239.help-gnu-emacs@gnu.org>
2009-08-06 7:54 ` Elena
2009-08-06 11:01 ` Bernardo
[not found] ` <mailman.4020.1249556773.2239.help-gnu-emacs@gnu.org>
2009-08-06 12:22 ` Elena
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=m24osnts3l.fsf@free.fr \
--to=harven@free.fr \
--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).