Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 12-04-2002, 06:10 PM   #1
EatingPie
Triple-A Player
 
Join Date: Jan 2002
Posts: 63
XDarwin and Option Key as Meta?

Hi.

In XDarwin, the Comand Key (aka Apple Key) acts as the Meta Key for emacs (X version). I would like to use the Option key as Meta, and was wondering if someone has any suggestions on how to switch 'em (short of hacking the source code).

-Pie
EatingPie is offline   Reply With Quote
Old 12-05-2002, 01:25 AM   #2
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
EatingPie,

This is something you have to fix with xmodmap. You can put xmodmap commands into your .xinitrc file or create a file .Xmodmap in your home directory and then make sure it is read at startup of XDarwin.

Try by writing an ~/.Xmodmap file with one (a or b) of the following lines:

Code:
a) If you want to set the Meta key to Alt:

      !Right Alt key is used to Meta key
      keysym Mode_switch = Escape
      keysym Meta_R = Escape
Code:
b) if you want the alt key to work as the meta key:

      keysym Mode_switch = Escape
Then, to read the .Xmodmap file at startup of XDarwin, write in your ~/.xinitrc file the following line:
Code:
xmodmap $HOME/.Xmodmap
Also, if you want to adjust other keys through the ~/.Xmodmap file, it is not too hard to construct it yourself, using 'xev' to find the key numbers and the files in /usr/X11R6/etc/xkb/symbols/ for the names of the symbols.


Cheers...

Last edited by sao; 12-05-2002 at 10:48 AM.
sao is offline   Reply With Quote
Old 12-05-2002, 08:29 PM   #3
EatingPie
Triple-A Player
 
Join Date: Jan 2002
Posts: 63
Thanks! That works.

The obvious solution, though I have never been good at Keymapping, and certainly NEVER would have figgered it out myself.

-Pie
EatingPie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.