ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
Subject:   Emacs: Meta-Control, how to do it in Terminal?
Date:   2006-11-23 21:27:14
From:   fluxion
Response to: Emacs: Meta-Control, how to do it in Terminal?

A very kind person wrote this:

I found a way to switch which key Mac OS X recognizes as meta. First, uncheck the “Use the system keyboard layout” option in X11 preferences. Then, create the file ~/.Xmodmap and insert the following six lines:

clear Mod1
clear Mod2
keycode 63 = Mode_switch
keycode 66 = Meta_L
add Mod1 = Meta_L
add Mod2 = Mode_switch

It clears the keymappings for alt and escape and then reassigns them to the reverse of what they were before. Restart X11 and it should pick up the changes.

source: http://snier.com/archives/2006/10/05/redefine-the-x11-meta-key-in-mac-os-x/

1 to 1 of 1
1 to 1 of 1