all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Using the `Win' key as `Ctrl' in Emacs?
Date: Thu, 01 Jul 2004 10:44:26 +0200	[thread overview]
Message-ID: <86y8m4p15h.fsf@rumba.de.uu.net> (raw)
In-Reply-To: 20040616222510.230014f5.tootiny@163.com

Xiaoyong Jin <tootiny@163.com> writes:

> 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.

You need to make the right 'flag' key into a control key, like so:

clear control
clear mod4
keycode 4711 = Control_R
add control = Control_L Control_R
add mod4 = Foo Bar

First, you say "xmodmap -pm" to see which modifiers Super_R appears
in.  Above, I'm assuming it's mod4.  If Super_R is not mentioned in
any modifier, then just omit the two lines mentioning mod4.

Secondly, you need to find out the keycode of the right 'flag' key,
perhaps by running xev.  Above, I'm assuming the code is 4711.

That's what I use and it works well.

Kai

  parent reply	other threads:[~2004-07-01  8:44 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
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 [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y8m4p15h.fsf@rumba.de.uu.net \
    --to=kai@emptydomain.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.