From: rob@tenfoot.org.uk (Rob Walker)
Subject: Re: Using the `Win' key as `Ctrl' in Emacs?
Date: 18 Jun 2004 01:05:27 -0700 [thread overview]
Message-ID: <f3bfc2fe.0406180005.179b5e0e@posting.google.com> (raw)
In-Reply-To: 20040618004337.07e5e13a.tootiny@163.com
>
> You are right. It's [?\s-c]. But I want to re-map all right
> control to right win key. Because I used to pressing right
> control whenever I want to press M-C-f, which I use my right hand
> to press M-C and my left hand press f.
>
> It seems that this
> (define-key key-translation-map [?\s] [?\C])
> is useless in such a case. And I can't find anything better to
> solve my problem.
>
> Or should I used to using one caps lock key to do every job
> including keybindings with control?
>
> Thanks,
> Sincerely
You need to add a translation for every key combination you want to
use, so for M-C-f, you need:
(define-key key-translation-map [(super meta ?f)] [(control meta ?f)])
If you need a lot of these then you might be better using xmodmap
Rob
next prev parent reply other threads:[~2004-06-18 8:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 14:25 Using the `Win' key as `Ctrl' in Emacs? Xiaoyong Jin
2004-06-16 22:30 ` Gustaf Erikson
2004-06-17 7:51 ` Xiaoyong Jin
2004-06-18 8:47 ` Gustaf Erikson
2004-06-18 12:14 ` Xiaoyong Jin
2004-06-18 13:40 ` Gustaf Erikson
2004-06-18 17:29 ` Xiaoyong Jin
2004-07-01 8:14 ` gebser
2004-07-01 8:46 ` Kai Grossjohann
2004-06-17 9:31 ` Rob Walker
2004-06-17 16:43 ` Xiaoyong Jin
2004-06-18 8:05 ` Rob Walker [this message]
2004-06-18 8:23 ` Xiaoyong Jin
2004-06-18 10:44 ` Jim Ottaway
2004-07-01 9:12 ` gebser
2004-07-01 8:44 ` Kai Grossjohann
[not found] ` <mailman.2918.1088671599.1953.help-gnu-emacs@gnu.org>
2004-07-01 18:43 ` Xiaoyong Jin
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=f3bfc2fe.0406180005.179b5e0e@posting.google.com \
--to=rob@tenfoot.org.uk \
/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).