> -----Original Message----- > From: Joe Riel [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 25, 2002 9:28 AM > To: debian > Subject: Alt vs Meta key in Emacs > > > I use a pc104 keyboard, the bottom row looks like the following: > > <ctrl-L> <window-L> <alt-L> <space> <alt-R> <window-R> <menu-R> <ctrl-R> > > Using xmodmap I swapped the <ctrl-L> key with the <caps lock>. > In emacs (under X), > <window-L> acts like a <meta> key, > <window-R> doesn't do anything (using xev it shows up as "multi-key") > <alt-L> and <alt-R> do nothing (they act as <alt> modifier keys, but > that > does nothing in emacs). > <menu-R> behaves as <meta-X>. > > How do I change these keys? I tried using keysym in xmodmap, > but my first attempt did not work with emacs. A search of the > emacs info pages, web, and Debian HOWTOs wasn't a lot of help. > > I currently would like to have the <alt-L> and <alt-R> keys > act as <meta> keys in emacs (in the long run it might be better > to have the window keys become <meta> keys and the <alt> keys > be a new modifier, however, I'm switching from NTEmacs where > <alt> is <meta> and that's what my fingers want to type.) > > Thanks for any pointers, > > Joe Riel >
I got ya covered. Here's my fixkeys script. It lives as a startup script in .kde/Autostart for me. I agreed that xmodmap leaves a lot to be desired. Even though I wrote the script below, I'm not entirely sure how it works. Good luck. Charlie. #!/bin/sh xmodmap - <<EOF ! ! Maps capslock to control ! remove Lock = Caps_Lock keysym Caps_Lock = Control_L add Control = Control_L ! ! Swap alts with meta ! remove Mod1 = Alt_L remove Mod1 = Alt_R remove Mod4 = Meta_L keysym Meta_L = Alt_L keysym Alt_L = Meta_L keysym Alt_R = Meta_R add mod1 = Meta_L Meta_R add mod4 = Alt_L EOF -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]