Women in Technology

Hear us Roar



Article:
  Top Ten Mac OS X Tips for Unix Geeks
Subject:   Emacs: Meta-Control, how to do it in Terminal?
Date:   2005-12-29 05:58:31
From:   Trondtr
Response to: Emacs: Meta-Control, how to do it in Terminal?

This is the bug that most of all makes me long for os9, but apart from this crucial omission, osX is great.


In os9, i pressed ctrl-x etc for emacs C-x, and I pressed (simultaneously) ctrl-alt-x for emacs M-x. Only for some commands you have to press ESC and then the key. In osX, this possibility is blocked. In terminal settings (Keyboard), I can choose to have alt key set as meta key, but that road is blocked, for obvious reasons: Being a linguist, I need the alt key to various non-ascii letters, this was what made me a mac user in the mid eighties. In os9, there was a further option: "alt option as meta". So, how can I get my meta back?


Trond.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Emacs: Meta-Control, how to do it in Terminal?
    2006-11-23 21:27:14  fluxion [View]

    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/