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 16:23:41 +0800 Organization: Fudan Univ. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040618162341.45ebb4f1.tootiny@163.com> References: <20040616222510.230014f5.tootiny@163.com> <20040618004337.07e5e13a.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 1088536589 20587 80.91.224.253 (29 Jun 2004 19:16:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:16:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:16:22 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 1BfO5d-0005Sq-00 for ; Tue, 29 Jun 2004 21:16:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfO7J-0000vI-SI for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:18:05 -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: 46 Original-X-Trace: news.uni-berlin.de 51GDzkBqAM9RsFmDrd9U+AZ9zKcNSif0ktPXnQVO1tsENwPdGT X-Newsreader: Sylpheed version 0.9.11 (GTK+ 1.2.10; i686-pc-linux-gnu) Original-Xref: shelby.stanford.edu gnu.emacs.help:123814 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:19175 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19175 On 18 Jun 2004 01:05:27 -0700 rob@tenfoot.org.uk (Rob Walker) wrote: > > > > 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 > > You need to add a translation for every key combination you want > to use, so for M-C-f, you need: > (define-key key-translation-map [(super meta ?f)] [(control meta > ?f)]) > > If you need a lot of these then you might be better using > xmodmap > > Rob Yes, I've used xmodmap. I tried this: xmodmap -e "add control = Super_R" and it works at most circumstances but Emacs. :-( For emacs, super is still the super but not include in control, while my browser, my terminal and any other program I use consider that Super_R is one of control group. So, I think it is a problem of emacs and could only be solved under emacs own. And if I need add a translation for every key combination I want, it's insane, I'm afraid. -- Simple is the best. ;-)