[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using the `Win' key as `Ctrl' in Emacs?
From: |
Xiaoyong Jin |
Subject: |
Re: Using the `Win' key as `Ctrl' in Emacs? |
Date: |
Fri, 18 Jun 2004 00:43:37 +0800 |
On 17 Jun 2004 02:31:54 -0700
rob@tenfoot.org.uk (Rob Walker) wrote:
> Xiaoyong Jin <tootiny@163.com> wrote in message
> news:<20040616222510.230014f5.tootiny@163.com>...
> > Hi, all!
> >
> > I'm now learning to use Emacs and I got a problem about
> > keyboard layout that my Compaq notepad only have one `Ctrl'
> > key on the left and which is so aweful that emacs use a lot of
> > key bindings with the `Ctrl' key.
> >
> > What I want is using the useless `win' key on the right.
> > Could some one tell me how to do this?
> >
> > I now use the xmodmap program to turn the Super_R key to the
> > control group. And it can be use under most programs under X
> > but Emacs.
>
> What about something like:
>
> (define-key key-translation-map [?\s-c] [?\C-c])
>
> in your .emacs - this rebinds super-c to control-c. I don't use
> xmodmap, so you may need to use something different instead of
> [?\s-c]- use M-x describe-key to find out what.
>
> Rob
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
--
Simple is the best. ;-)
Re: Using the `Win' key as `Ctrl' in Emacs?, Rob Walker, 2004/06/29
- Re: Using the `Win' key as `Ctrl' in Emacs?,
Xiaoyong Jin <=