install Cocoa Emacs with Homebrew
$ brew install --cocoa emacs
==> Downloading http://ftpmirror.gnu.org/emacs/emacs-23.3a.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file src/ChangeLog
patching file src/unexmacosx.c
patching file src/s/darwin.h
patching file src/nsterm.m
patching file src/nsterm.m
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 4489 with fuzz 1.
patching file lisp/term/ns-win.el
Hunk #1 succeeded at 1267 (offset 4 lines).
patching file src/nsfns.m
Hunk #1 succeeded at 2591 (offset 2 lines).
patching file src/nsterm.h
patching file src/nsterm.m
Hunk #1 succeeded at 695 (offset 9 lines).
Hunk #2 succeeded at 1162 (offset 24 lines).
Hunk #3 succeeded at 1234 (offset 24 lines).
Hunk #4 succeeded at 5637 (offset 15 lines).
Hunk #5 succeeded at 5748 (offset 15 lines).
==> ./configure --prefix=/usr/local/Cellar/emacs/23.3a --without-dbus --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/23.3a/share/info/emacs --with-ns --disab
==> make bootstrap
==> make install
==> Caveats
For build options see:
brew options emacs
Emacs.app was installed to:
/usr/local/Cellar/emacs/23.3a
Command-line emacs can be used by setting up an alias:
alias emacs="/usr/local/Cellar/emacs/23.3a/Emacs.app/Contents/MacOS/Emacs -nw"
To link the application to a normal Mac OS X location:
brew linkapps
or:
ln -s /usr/local/Cellar/emacs/23.3a/Emacs.app /Applications
Because the official bazaar repository might be slow, we include an option for
pulling HEAD from an unofficial Git mirror:
brew install emacs --HEAD --use-git-head
There is inevitably some lag between checkins made to the official Emacs bazaar
repository and their appearance on the repo.or.cz mirror. See
http://repo.or.cz/w/emacs.git for the mirror's status. The Emacs devs do not
provide support for the git mirror, and they might reject bug reports filed
with git version information. Use it at your own risk.
==> Summary
/usr/local/Cellar/emacs/23.3a: 3673 files, 108M, built in 3.0 minutes