# This function assumes the emacs program is named `emacs' and is somewhere
# in your load path. If either of these is not true, the most portable
# (and convenient) thing to do is to make an alias called emacs which
-# refers to the real program, e.g.
+# refers to the real program, e.g.
#
# alias emacs=/usr/local/bin/gemacs
#
if [ -n "${windowsys:+set}" ]; then
# Do not just test if these files are sockets. On some systems
# ordinary files or fifos are used instead. Just see if they exist.
- if [ -e "${HOME}/.emacs_server" -o -e "/tmp/esrv${UID}-"* ]; then
+ if [ -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then
emacsclient "$@"
return $?
else
x ) (emacs "$@" &) ;;
sun ) (emacstool "$@" &) ;;
esac
- else
+ else
if jobs %emacs 2> /dev/null ; then
echo "$(pwd)" "$@" >| ${HOME}/.emacs_args && fg %emacs
else
}
+# arch-tag: 1e1b74b9-bf2c-4b23-870f-9eebff7515cb