From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rob@tenfoot.org.uk (Rob Walker) Newsgroups: gmane.emacs.help Subject: Re: Using the `Win' key as `Ctrl' in Emacs? Date: 18 Jun 2004 01:05:27 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20040616222510.230014f5.tootiny@163.com> <20040618004337.07e5e13a.tootiny@163.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088536582 20572 80.91.224.253 (29 Jun 2004 19:16:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:16:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:16:09 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 1BfO5Q-0005Rj-00 for ; Tue, 29 Jun 2004 21:16:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfO76-0000q1-RF for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:17:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 193.115.14.67 Original-X-Trace: posting.google.com 1087545927 6201 127.0.0.1 (18 Jun 2004 08:05:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 18 Jun 2004 08:05:27 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:123813 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:19174 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19174 > > 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