Skip to content

Instantly share code, notes, and snippets.

@spo11
Last active December 19, 2015 03:19
Show Gist options
  • Save spo11/5889402 to your computer and use it in GitHub Desktop.
Save spo11/5889402 to your computer and use it in GitHub Desktop.
Setting up Emacs with PeepOpen

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment