From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wu XiaoGuang Newsgroups: gmane.emacs.help Subject: Re: Alt key in woody Date: 10 Oct 2002 12:02:55 +0800 Organization: Gnus at Emacs dot GNU Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87d6qjgcuo.fsf@linux.net.cn> References: <8c53236b.0210082113.3c3fc46c@posting.google.com> <1m8z18cdeq.fsf@Tempo.Update.UU.SE> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034293007 21426 127.0.0.1 (10 Oct 2002 23:36:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 23:36:47 +0000 (UTC) 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 17zmrF-0005ZR-00 for ; Fri, 11 Oct 2002 01:36:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zmqi-0004HR-00; Thu, 10 Oct 2002 19:36:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsfeed.eunet.at!newsfeed.austria.eu.net!anon.lcs.mit.edu!nym.alias.net!mail2news Original-Newsgroups: gnu.emacs.help Original-Lines: 51 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Mail-To-News-Contact: postmaster@nym.alias.net Original-Xref: shelby.stanford.edu gnu.emacs.help:105916 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2463 On 09 Oct 2002 08:52:13 +0200, Fredrik Staxeng wrote: > woohsiaokuang@yahoo.com.cn (Wu XiaoGuang) writes: >> Hi, all: I just installed Debian GNU/Linux 3.0 . The GNU Emacs >> version is 21.2 . I couldn't use Alt key normally. Although I >> could use it it in terminal (emacs -nw), it's a little unsuitable. >> I tried to put ,---- | xmodmap -e "keysym Alt_L = Meta_L Alt_L" & >> `---- in ~/.xinitrc or ~/.xsession , but after I do this, I can't >> startx later. >> >> Thank you. > I put only the Meta keysym on the Alt key, since Meta and Alt are > synonymous. > keysym Alt_L = Meta_L keysym Alt_R = Meta_R > And then you have to check that all Meta keys are mapped to the mod1 > Modifier. > ; xmodmap -pm xmodmap: up to 4 keys per modifier, (keycodes in > parentheses): > shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control > Control_L (0x25), Control_R (0x6d), Control_L (0x73), Control_R > (0x74) mod1 Meta_L (0x40), Meta_R (0x71) mod2 Num_Lock (0x4d) mod3 > mod4 Control_L (0x73) mod5 Scroll_Lock (0x4e) > Or you could just use the pc101 keyboard layout in X. Then there > will be no Meta mapping on the Windows key, so the Alt key will be > Meta. > Your fix should work by itself, so it seems that your problem is to > get the rest of the .xinitrc to work. Oh, and lose the & on the > xmodmap line. > -- Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr Maybe it's the fault of myself. Now my ~/.xinitrc contains: ,---- | xmodmap -e "keysym Alt_L = Meta_L Alt_L" & | | # start icewm, and run xterm if it crashes (just to be safe) | exec icewm || exec xterm -fg red `---- It works now. (I guess it only need a Window Manager, :-)) __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com