First, install Emacs 24.x with cocoa support:
$ brew install emacs --cocoa
Then, create an alias in your home folder/Applications:
$ mkdir ~/Applications
$ brew linkapps
Install PeepOpen and its associated Emacs plugin with these instructions. You'll also need to install the TextMate emacs plugin.
In $HOME/.emacs.d/vendor
:
$ git clone git://github.com/defunkt/textmate.el.git
Then, in your $HOME/.emacs.d/init.el
:
(add-to-list 'load-path "~/.emacs.d/vendor/textmate.el")
(require 'textmate)
(add-to-list 'load-path "~/.emacs.d/vendor/")
(require 'peepopen)
(textmate-mode)
(setq ns-pop-up-frames nil)
These will load the necessary emacs files to get PeepOpen to work with CocoaEmacs.
After restarting Emacs, open a file within a git repo. Then press CMD-T. This should invoke the PeepOpen window. After pressing enter, the file you searched for should now open in Emacs.