From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.help Subject: Re: Help producing the Alt modifier Date: 05 May 2003 09:36:22 +0200 Organization: Lucent Technologies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84he8gvz6e.fsf@lucy.is.informatik.uni-duisburg.de> <84wuha6g84.fsf@lucy.is.informatik.uni-duisburg.de> <73fta.58420$mZ4.668797@news.xtra.co.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Don't forget to think about financial concerns. Listen to your anteater today. You will be in conflict with Scorpio since Pluto has moved into Cancer. You will meet someone you blessed 3 to 6 times at a party this week. You'll soon be tired. X-Trace: main.gmane.org 1052120850 6612 80.91.224.249 (5 May 2003 07:47:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 07:47:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 05 09:47:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CagC-0001gR-00 for ; Mon, 05 May 2003 09:46:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Cafn-0007p7-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 05 May 2003 03:46:07 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!uunet!sac.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Original-NNTP-Posting-Host: sfsw51.de.lucent.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:112776 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9271 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9271 >>>>> "Jeremy" == Jeremy Bowen writes: Jeremy> Jeremy> Luis O. Silva wrote: JB> How do I make the ALT keys generate the modifier JB> ????? >> >> AFAIK you won't be able to generate the Alt modifier in >> Emacs. You always will obtain the Meta modifier. The Alt if there's no Meta key defined then emacs will use Alt as Meta, once you have an Meta modifier, ALt can be used too >> modifier didn't exist in the old terminal and it is *not* >> needed in Emacs. Why do you want this modifier? If you need an >> alternative modifier, why don't you define Super or Hyper? Jeremy> Jeremy> OK. How do I make the ALT keys generate the or Jeremy> modifier ???? so your xmodmap output tells us you have defined mod1 as Alt and not as Meta shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Alt_R (0x71) mod2 Num_Lock (0x4d) mod3 mod4 mod5 Scroll_Lock (0x4e) IIRC you use a 101 keyboard, i.e. you've got no windows keys etc., i.e. you could e.g. use one of the Control and Alt keys. now add to/write to your .xmodmaprc file --- snip -- clear Control clear Mod1 keysym Alt_R = Meta_R keysym Control_R = Hyper_R add Control = Control_L add Mod1 = Alt_L add Mod3 = Meta_R add Mod4 = Hyper_R --- snip --- hope I got this right cause it's been a long time that I played with xmodmap. This should redefine your right Alt and Control keys to Meta and Hyper. If you don't use Scroll_Lock or Num_Lock then you can of course also redefine these keys (that's what I've done and I also removed Caps_Lock and use that key as super key). Do you know xkeycaps? Once you start playing with the keycodes you better have this one at hand to go back to the default key bindings. HTH Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- If I had only known, I would have been a locksmith. -- Albert Einstein