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, 2 Jul 2004 02:43:37 +0800 Organization: Fudan Univ. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040702024337.3f5daffd.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 1088707738 4614 80.91.224.253 (1 Jul 2004 18:48:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2004 18:48:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 20:48:32 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 1Bg6bn-0003rY-00 for ; Thu, 01 Jul 2004 20:48:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bg6dZ-0002lP-IB for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2004 14:50:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-X-Trace: news.uni-berlin.de mjeK56SO7Cac4hINLc9o9giumju9L+HJF503Pf9r4e3dCTb8k/ X-Newsreader: Sylpheed version 0.9.12-gtk2-20040617 (GTK+ 2.2.4; i686-pc-linux-gnu) Original-Xref: shelby.stanford.edu gnu.emacs.help:124081 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:19411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19411 On Thu, 01 Jul 2004 10:44:26 +0200 Kai Grossjohann wrote: > Xiaoyong Jin writes: > > > 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. > > You need to make the right 'flag' key into a control key, like > so: > > clear control > clear mod4 > keycode 4711 = Control_R > add control = Control_L Control_R > add mod4 = Foo Bar > > First, you say "xmodmap -pm" to see which modifiers Super_R > appears > in. Above, I'm assuming it's mod4. If Super_R is not mentioned > in > any modifier, then just omit the two lines mentioning mod4. > > Secondly, you need to find out the keycode of the right 'flag' > key, > perhaps by running xev. Above, I'm assuming the code is 4711. > > That's what I use and it works well. > > Kai > > > Oh, yeah, it works amazingly. It's handy to have control key in both hands. And thank you all who offered me help. -- Simple is the best. ;-)