Skip to content

Instantly share code, notes, and snippets.

@lstoll
Created March 5, 2010 22:33
Show Gist options
  • Save lstoll/323238 to your computer and use it in GitHub Desktop.
Save lstoll/323238 to your computer and use it in GitHub Desktop.
# Need to have this file in your .emacs.d
# http://github.com/lstoll/emacs.d/blob/lstoll/emacs-gui.sh
# This will open the file in GUI Emacs, starting if if's not running
alias ec="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -a ~/.emacs.d/emacs-gui.sh"
# This will open the file in a new frame in the terminal, using the running gui backend
alias et="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -a ~/.emacs.d/emacs-gui.sh"
# Open the file in GUI Emacs, in a new frame (OS X 'Window')
alias en="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -c ~/.emacs.d/emacs-gui.sh"
# Set the default command line editor (e.g for commits) to GUI emacs if it's running, otherwise use VI
EDITOR="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t --alternate-editor vi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment