From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Using the `Win' key as `Ctrl' in Emacs? Date: Thu, 01 Jul 2004 10:44:26 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86y8m4p15h.fsf@rumba.de.uu.net> References: <20040616222510.230014f5.tootiny@163.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088671512 4658 80.91.224.253 (1 Jul 2004 08:45:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2004 08:45:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 10:45:06 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 1BfxBp-0007by-00 for ; Thu, 01 Jul 2004 10:45:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfxDa-0001zU-HM for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2004 04:46:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BfxDJ-0001yW-AL for help-gnu-emacs@gnu.org; Thu, 01 Jul 2004 04:46:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BfxDG-0001yK-BC for help-gnu-emacs@gnu.org; Thu, 01 Jul 2004 04:46:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfxDF-0001yH-VW for help-gnu-emacs@gnu.org; Thu, 01 Jul 2004 04:46:34 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BfxBH-0000hr-Gq for help-gnu-emacs@gnu.org; Thu, 01 Jul 2004 04:44:31 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BfxBG-0002Ff-00 for ; Thu, 01 Jul 2004 10:44:30 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jul 2004 10:44:30 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jul 2004 10:44:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 27 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:E73P6gKTE+3PWvV+gH3WONo5ZgU= 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:19392 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19392 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