all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
Subject: Re: swap CapsLock and Ctrl only in Emacs
Date: Mon, 12 Jun 2006 20:37:41 +1000	[thread overview]
Message-ID: <877j3mslqi.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: 719148673.11150100023147.JavaMail.nntpgw@xnews001

tury.peter@gmail.com writes:

> Hi,
>
> according to http://www.emacswiki.org/cgi-bin/wiki/MovingTheCtrlKey and to http://www.gnu.org/software/emacs/windows/faq3.html#capscontrol this is not possible in Emacs. Is this still impossible in Emacs 22? And what about EmacsW32?
>
> Thanks,
> P

I don't believe you are likely to ever be able to do this from within
emacs (via elisp) as you need to somehow intercept every keystroke
prior to it being interpreted by emacs and modify the definitions for
the keys you want to re-map. It would also involve an additional level
of mapping and I'm not sure how you would do this reliably and
efficiently on a multi-user system.

Under X the solution is easy - you re-map the keys at the X level
using utilities like modmap. For Windows, its a lot trickier as you
either have to install a new driver or hack the registry. Either
option has considerable risk. I would go for the keyboard driver
solution as it is likely to be more consistent and reliable than a
registry hack. Of course, you have to be confident the keyboard driver
has been well written and behaves nicely with other keyboard drivers
which have/may also be loaded and that can be a little tricky under windows.

Tim
-- 
tcross (at) rapttech dot com dot au

  reply	other threads:[~2006-06-12 10:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-12  8:13 swap CapsLock and Ctrl only in Emacs tury.peter
2006-06-12 10:37 ` Tim X [this message]
2006-06-13  3:35   ` Eli Zaretskii
     [not found]   ` <mailman.2846.1150169750.9609.help-gnu-emacs@gnu.org>
2006-06-13  4:12     ` B. T. Raven
2006-06-13  9:24       ` Stein Arild Strømme
2006-06-13  8:09     ` Mathias Dahl
2006-06-12 14:51 ` B. T. Raven
2006-06-12 14:59   ` Chris McMahan
2006-06-13  7:48 ` tury.peter
2006-06-13  8:21   ` Mathias Dahl
2006-06-21  2:14   ` sean.ohalpin

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=877j3mslqi.fsf@tiger.rapttech.com.au \
    --to=timx@nospam.dev.null \
    /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.