Use Command as Meta for Emacs on OSX

Snippet

Emacs 23 doesn't use Command ⌘ for the Meta keystroke, requiring using option / alt for the normal keystrokes. Blech. Fix that.

This rather assumes you're using the emacs from http://emacsformacosx.com.

Add this to your ~/.emacs

    (setq mac-option-key-is-meta nil)
    (setq mac-command-key-is-meta t)
    (setq mac-command-modifier 'meta)
    (setq mac-option-modifier nil)

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.