A 2011 look at Emacs on MacOSX Lion

Dec 22, 2011

The emacs that Apple shipped with Tiger, Leopard, Snow Leopard, and now Lion, is just a tty version.
There are options for a full Cocoa emacs, and this page describes the options pretty well.

I opted to build the Cocoa Emacs versions for Lion & Snow Leopard.

Lion: Snow Leopard: Here is the .emacs fu that I figured out to get map command-[xcv] to the proper yank/kill commands, and some other defaults:
  ; map command key to alt
  (setq mac-command-modifier 'alt)

  ; Map command-x,c,v to cut, copy, paste
  (global-set-key [?\A-x] 'clipboard-kill-region)
  (global-set-key [?\A-c] 'clipboard-kill-ring-save)
  (global-set-key [?\A-v] 'clipboard-yank)

  ; More mac shortcuts.
  (global-set-key [?\A-a] 'mark-whole-buffer)
  (global-set-key [?\A-z] 'undo)
  (global-set-key [?\A-l] 'goto-line)
  (global-set-key [?\A-m] 'iconify-frame)
  (global-set-key [?\A-n] 'new-frame)
Install Emacs.app in /Applications, then start the UI version up from a Terminal:
  /Application/Emacs.app/Contents/MacOS/Emacs


Chris McAfee <mcafee@mocha.com>