From: gebser@speakeasy.net
Cc: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: Re: Using the `Win' key as `Ctrl' in Emacs?
Date: Thu, 1 Jul 2004 05:12:49 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0407010418550.1612-100000@localhost.localdomain> (raw)
In-Reply-To: <20040618162341.45ebb4f1.tootiny@163.com>
At 16:23 (UTC+0800) on Fri, 18 Jun 2004 Xiaoyong Jin said:
= On 18 Jun 2004 01:05:27 -0700
= rob@tenfoot.org.uk (Rob Walker) wrote:
=
= > > ....
=
= Yes, I've used xmodmap. I tried this:
=
= xmodmap -e "add control = Super_R"
=
>From "man xmodmap":
One of the more irritating differences between keyboards is the location
of the Control and Shift Lock keys. A common use of xmodmap is to swap
these two keys as follows:
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
Put the above code into ~/.Xmodmap and it should be read and executed
when you log into an X session (by /etc/X11/xinit/xinitrc). This is a
good thing to do when you have an account on someone else's UNIX system.
For my own machines (e.g., at home) I simply copy
/lib/kbd/keymaps/i386/qwerty/us.map.gz to
/lib/kbd/keymaps/i386/qwerty/ctrlcaps.gz, then edit the latter to get
the same effect as the ~/.Xmodmap code (above). This requires changing
only two of its lines to these:
keycode 29 = Caps_Lock
keycode 58 = Control
(Make sure that these lines don't end with a space character; for some
reason that screws things up.)
To have ctrlcaps loaded into X (e.g., at bootup), make the appropriate
change in whatever your Linux flavor points to in its /etc/*/init.d/key*
startup script. On RedHat and similars, edit /etc/sysconfig/keyboard to
read:
KEYTABLE="ctrlcaps"
Pretty much these same steps have worked on a variety of Linux boxes as
well as HPs, Suns, and other Unices.
hth,
ken
next prev parent reply other threads:[~2004-07-01 9:12 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 [this message]
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=Pine.LNX.4.44.0407010418550.1612-100000@localhost.localdomain \
--to=gebser@speakeasy.net \
--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).