Installing Emacs 24 on MacOSX

I installed emacs 24 on MacOSX snow leopard by using homebrew. According to this website, issue the next command

$ brew install emacs --cocoa --use-git-head --HEAD
... was installed to:

Command-line emacs can be used by setting up an alias:
  alias emacs="/usr/local/Cellar/emacs/HEAD/ -nw"

 To link the application to a normal Mac OS X location:
   brew linkapps
   ln -s /usr/local/Cellar/emacs/HEAD/ /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 Savannah mirror. See 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.

Then created a application link and alias.

$ ln -s /usr/local/Cellar/emacs/HEAD/ /Applications
$ alias emacs="/usr/local/Cellar/emacs/HEAD/ -nw"