unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: Re: Default Emacs keybindings
Date: Tue, 4 May 2004 07:42:03 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.1040504071722.827A-100000@acm.acm> (raw)
In-Reply-To: <uisfcg27x.fsf@gnu.org>



On 4 May 2004, Eli Zaretskii wrote:

>> Date: Mon, 3 May 2004 17:59:47 -0500 (CDT)
>> From: Luc Teirlinck <teirllm@dms.auburn.edu>

>> Richard Stallman wrote:

>>    What we should do is include prominent documentation telling users
>>    how to remap their caps-lock key, with specific recipes.  (I have
>>    no idea where to find this information for GNU/Linux.)

The relevant man pages are loadkeys(1), dumpkeys(1), showkey(1) and
keytables(5)

>> >From M-x man xmodmap:

>xmodmap is only for working on X, IIRC it doesn't help if one runs Emacs
>from a console or logs in remotely via a terminal emulator.  So this is
>not a universal solution, not even on a GNU/Linux machine.

The Right Way to do this is to modify the Linux keyboard driver.  For
Linux running on an Intel PC, create a two-line file called (say)
/etc/keytab.CoLo with the following contents:

keycode 29 = Caps_Lock
keycode 58 = Control

Then, at a bash prompt (or, eventually, in a start-up script), do:

# loadkeys /etc/keytab.CoLo

[The scan codes of the pertinent keys on different hardware can be found
with showkeys, for example.]

There is a bug in the keyboard driver of my (shamefully out of date)
Linux kernel, in which after running this file, the keyboard is left in
"permanent control" state.  This can be worked around by specifying in
/etc/keytab.CoLo "Caps_Lock" or "Control" individually for each modifier
combination, as follows. 

keycode 29 = Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock
keycode 58 = Control Control Control Control Control Control Control Control Control Control Control

The number of "Caps_Lock"s necessary can be found from "dumpkeys -i".

-- 
Alan Mackenzie (Munich, Germany)

  parent reply	other threads:[~2004-05-04  7:42 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-23 21:24 Menu suggestion David Kastrup
2004-04-24 13:29 ` Robert J. Chassell
2004-04-24 23:02 ` Kim F. Storm
2004-04-25 23:35   ` Richard Stallman
2004-04-26  8:23     ` Default Emacs keybindings (was: Re: Menu suggestion) Per Abrahamsen
2004-04-26 13:35       ` Luc Teirlinck
2004-04-26 14:22         ` Default Emacs keybindings Per Abrahamsen
2004-04-26 13:44       ` Default Emacs keybindings (was: Re: Menu suggestion) Alan Mackenzie
2004-04-26 15:16         ` David Kastrup
2004-04-26 22:33           ` Kim F. Storm
2004-04-26 21:36             ` David Kastrup
2004-04-26 23:06               ` Luc Teirlinck
2004-04-27 14:04               ` Stefan Monnier
2004-04-27 14:22                 ` David Kastrup
2004-04-29 19:42                   ` Stefan Monnier
2004-05-24 14:08               ` Richard Stallman
2004-05-26 16:18                 ` Stefan Monnier
2004-05-26 17:01                   ` David Kastrup
2004-05-27 23:53                   ` Richard Stallman
2004-05-28 21:06                   ` Stefan Monnier
2004-04-27 23:59             ` Default Emacs keybindings Stefan Daschek
2004-04-30 13:06         ` Per Abrahamsen
2004-04-30 21:41           ` Miles Bader
2004-05-01 17:50           ` Richard Stallman
2004-05-01 18:20             ` Andreas Schwab
2004-05-02 19:52               ` Richard Stallman
2004-05-02 21:15                 ` Miles Bader
2004-05-03  6:11                   ` Lars Brinkhoff
2004-05-03  5:53                     ` Kim F. Storm
2004-05-03  8:34                       ` Miles Bader
2004-05-03  7:32                         ` Kim F. Storm
2004-05-03  9:55                           ` Miles Bader
2004-05-03  9:36                         ` Kai Grossjohann
2004-05-07 12:34                         ` Jose E. Marchesi
2004-05-03  9:08                       ` Jan Nieuwenhuizen
2004-05-03  7:25                         ` Kim F. Storm
2004-05-03  9:51                           ` Jan Nieuwenhuizen
2004-05-03 10:33                         ` Per Abrahamsen
2004-05-03 11:28                         ` Kenichi Handa
2004-05-03 11:54                           ` Jan Nieuwenhuizen
2004-05-03 23:15                             ` Masatake YAMATO
2004-05-04  0:11                             ` Kenichi Handa
2004-05-03 22:21                         ` Richard Stallman
2004-05-03 22:59                           ` Luc Teirlinck
2004-05-04  6:01                             ` Eli Zaretskii
2004-05-04  7:02                               ` David Kastrup
2004-05-04  7:42                               ` Alan Mackenzie [this message]
2004-05-04 13:54                                 ` Stefan Monnier
2004-05-04 15:37                                   ` Alan Mackenzie
2004-05-04 21:45                                     ` Luc Teirlinck
2004-05-04 21:35                               ` Luc Teirlinck
2004-05-05  5:53                                 ` Eli Zaretskii
2004-05-05 14:29                                   ` Luc Teirlinck
2004-05-05 22:20                                     ` Thien-Thi Nguyen
2004-05-05 14:34                                   ` Luc Teirlinck
2004-05-04 20:07                             ` Richard Stallman
2004-05-04 12:20                           ` Robert J. Chassell
2004-05-05 20:20                             ` Richard Stallman
2004-05-06 12:41                               ` Robert J. Chassell
2004-05-06 14:22                                 ` Andreas Schwab
2004-05-06 14:54                                   ` Robert J. Chassell
2004-05-06 15:28                                     ` Andreas Schwab
2004-05-08  1:20                                 ` Richard Stallman
2004-05-08 23:20                                   ` Robert J. Chassell
2004-05-04 12:25                           ` Robert J. Chassell
2004-05-03 22:21                       ` Richard Stallman
2004-05-03  7:48                     ` Jan Nieuwenhuizen
2004-04-26  9:56     ` Menu suggestion Kim F. Storm
2004-04-26  8:39       ` Miles Bader
2004-04-26 11:37         ` Kim F. Storm
2004-04-27  8:24           ` Richard Stallman
2004-04-27 11:05             ` Kim F. Storm
2004-04-27 10:38               ` Jan Nieuwenhuizen
2004-04-27 14:04                 ` Kim F. Storm
2004-04-30 13:13                 ` Per Abrahamsen
2004-04-30 14:03                   ` Stefan Monnier
2004-04-30 17:30                     ` Kim F. Storm
2004-04-30 19:35                       ` Stefan Monnier
2004-04-30 19:55                         ` Kim F. Storm
2004-05-03  7:18                       ` Juanma Barranquero
2004-05-03 10:25                         ` Kim F. Storm
2004-05-04  7:32                           ` David Kastrup
2004-04-27 14:21             ` Stefan Monnier
2004-04-28 10:12               ` Richard Stallman
2004-04-28  5:09             ` Juri Linkov
2004-04-28  6:40               ` Eli Zaretskii
2004-04-28  5:55                 ` Juri Linkov
2004-04-28 11:25                   ` Eli Zaretskii
2004-04-28 12:57                   ` Robert J. Chassell
2004-04-28  6:46               ` Miles Bader
2004-04-28 12:51               ` Robert J. Chassell
2004-04-29 10:44               ` Richard Stallman
2004-04-29 11:27                 ` Juri Linkov
2004-04-26 10:35       ` Eli Zaretskii
2004-04-26 16:36         ` jargon translation up-front in doc (was: Menu suggestion) Drew Adams
2004-04-27  6:43           ` Eli Zaretskii
2004-04-29  1:48             ` Drew Adams
2004-04-29 15:44               ` Kevin Rodgers
2004-04-29 17:37                 ` Drew Adams
2004-04-29 23:36                   ` Kim F. Storm
2004-04-29 23:48                     ` Drew Adams
2004-04-30  9:02               ` Richard Stallman
2004-04-25 18:08 ` Menu suggestion Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-04-26 11:33 Default Emacs keybindings (was: Re: Menu suggestion) Lars Hansen
2004-04-27  8:24 ` Richard Stallman
2004-04-27  9:54   ` David Kastrup
2004-04-27 10:23     ` Default Emacs keybindings Lars Hansen
     [not found] <20040503092848.7F3BFBEDE9@imf.math.ku.dk>
2004-05-03 10:32 ` Lars Hansen
2004-05-03 11:01   ` Miles Bader
2004-05-03 12:37   ` Kai Grossjohann
     [not found] <20040503133902.EF5FEBEBF0@imf.math.ku.dk>
2004-05-03 14:18 ` Lars Hansen

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.3.96.1040504071722.827A-100000@acm.acm \
    --to=acm@muc.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 public inbox

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

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