Skip to content

Instantly share code, notes, and snippets.

@bradwright
Created April 25, 2012 12:13
Show Gist options
  • Save bradwright/2489285 to your computer and use it in GitHub Desktop.
Save bradwright/2489285 to your computer and use it in GitHub Desktop.
Emacs path mangling on OS X
emacsen=`find ~/Applications/ -name Emacs | head -n 1`
if [ -n "$emacsen" ]; then
alias emacs="$emacsen"
emacsclient=`find ~/Applications -name emacsclient | head -n 1`
alias emacsclient="'$emacsclient'"
alias vemacs="'$emacsclient' -c -n"
export EDITOR="'$emacsclient' -t"
export VISUAL="'$emacsclient' -c"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment