diff --git a/bash/emacs.sh b/bash/emacs.sh index 67aba77..29d66a5 100644 --- a/bash/emacs.sh +++ b/bash/emacs.sh @@ -1,3 +1,7 @@ # Make emacs the default editor, default to non-gui mode. -alias emacs="/usr/bin/emacs -nw" -export EDITOR="/usr/bin/emacs -nw" +# On OS X, skip this, since emacs will be installed locally through +# homebrew. +if [ $(uname -a | cut -f 1 -d ' ') != 'Darwin' ]; then + alias emacs="/usr/bin/emacs -nw" + export EDITOR="/usr/bin/emacs -nw" +fi