From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Xiaoyong Jin Newsgroups: gmane.emacs.help Subject: Re: Using the `Win' key as `Ctrl' in Emacs? Date: Fri, 18 Jun 2004 00:43:37 +0800 Organization: Fudan Univ. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040618004337.07e5e13a.tootiny@163.com> References: <20040616222510.230014f5.tootiny@163.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1088536369 19941 80.91.224.253 (29 Jun 2004 19:12:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:12:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:12:41 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfO24-000578-00 for ; Tue, 29 Jun 2004 21:12:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfO3k-0005bH-FR for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:14:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-X-Trace: news.uni-berlin.de +fNnM30o5t3J40di91BctAJiJOSb/sfZah6g298GM/zub69rUy X-Newsreader: Sylpheed version 0.9.11 (GTK+ 1.2.10; i686-pc-linux-gnu) Original-Xref: shelby.stanford.edu gnu.emacs.help:123801 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19162 On 17 Jun 2004 02:31:54 -0700 rob@tenfoot.org.uk (Rob Walker) wrote: > Xiaoyong Jin wrote in message > news:<20040616222510.230014f5.tootiny@163.com>... > > Hi, all! > > > > I'm now learning to use Emacs and I got a problem about > > keyboard layout that my Compaq notepad only have one `Ctrl' > > key on the left and which is so aweful that emacs use a lot of > > key bindings with the `Ctrl' key. > > > > 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. > > What about something like: > > (define-key key-translation-map [?\s-c] [?\C-c]) > > in your .emacs - this rebinds super-c to control-c. I don't use > xmodmap, so you may need to use something different instead of > [?\s-c]- use M-x describe-key to find out what. > > Rob You are right. It's [?\s-c]. But I want to re-map all right control to right win key. Because I used to pressing right control whenever I want to press M-C-f, which I use my right hand to press M-C and my left hand press f. It seems that this (define-key key-translation-map [?\s] [?\C]) is useless in such a case. And I can't find anything better to solve my problem. Or should I used to using one caps lock key to do every job including keybindings with control? Thanks, Sincerely -- Simple is the best. ;-)