Created
April 25, 2012 12:13
-
-
Save bradwright/2489285 to your computer and use it in GitHub Desktop.
Emacs path mangling on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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