Created
May 4, 2015 12:35
-
-
Save hanazuki/26f6f8c6dc71452a7608 to your computer and use it in GitHub Desktop.
emacs wrapper
This file contains 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
#!/bin/bash | |
if [ -z "$EMACS" ]; then | |
{ | |
IFS=: | |
for path in $PATH; do | |
if [ -x "$path/emacs" -a ! "$path/emacs" -ef "$BASH_SOURCE" ]; then | |
EMACS="$path/emacs" | |
break | |
fi | |
done | |
} | |
fi | |
if [[ "${1%%=*}" = --daemon ]]; then | |
exec "$EMACS" --no-site-file "$@" | |
else | |
exec "$EMACS" "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment