From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: swap CapsLock and Ctrl only in Emacs Date: Mon, 12 Jun 2006 23:12:56 -0500 Organization: UseNetServer.com Message-ID: <304a7$448e3bab$49ede9e$18309@DIALUPUSA.NET> References: <719148673.11150100023147.JavaMail.nntpgw@xnews001><877j3mslqi.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150173626 21889 80.91.229.2 (13 Jun 2006 04:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jun 2006 04:40:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 13 06:40:25 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fq0hT-0006SY-Sf for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jun 2006 06:40:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fq0hT-0000Ou-9E for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jun 2006 00:40:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!atl-c08.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 45 Original-X-Trace: 304a7448e3baba13b7b3b18309 Original-Xref: shelby.stanford.edu gnu.emacs.help:139790 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35414 Archived-At: "Eli Zaretskii" wrote in message news:mailman.2846.1150169750.9609.help-gnu-emacs@gnu.org... > > From: Tim X > > Date: Mon, 12 Jun 2006 20:37:41 +1000 > > > > Under X the solution is easy - you re-map the keys at the X level > > using utilities like modmap. > > Which will swap the keys in all X applications--contrary to what the > OP wanted. > > > For Windows, its a lot trickier as you either have to install a new > > driver or hack the registry. > > Which isn't harder than using xmodmap: Google will find gazillions of > articles on how to do the registry ``hack'' easy way. > > > Either option has considerable risk. > > There's absolutely no risk with the registry method. Even Microsoft > explains in MSDN how to do that. > > Anyway, none of these solutions are limited to Emacs alone, which is > what the OP wanted. > > He did say that but it would have made more sense if he had said "...only CapsLock and [Left] Control key in Emacs." I can't imagine a scenario in which, for instance, the same person would want to use a qwerty keyboard for one application and a dvorak for another. It tends to short-circuit procedural memory. If more than one person are using the machine, it should be possible to toggle between two keyboard layouts. For qwerty and dvorak it's a matter of two mouse clicks or keystrokes (dos needs "keyb dv,,c:\dos\keyboard.sys" and "keyb us,,c:\dos\keyboard.sys" in the batch files am.bat and ma.bat, respectively or versa vice. Doesn't require rebooting). Ed Ed.