7 |
# This function assumes the emacs program is named `emacs' and is somewhere |
# This function assumes the emacs program is named `emacs' and is somewhere |
8 |
# in your load path. If either of these is not true, the most portable |
# in your load path. If either of these is not true, the most portable |
9 |
# (and convenient) thing to do is to make an alias called emacs which |
# (and convenient) thing to do is to make an alias called emacs which |
10 |
# refers to the real program, e.g. |
# refers to the real program, e.g. |
11 |
# |
# |
12 |
# alias emacs=/usr/local/bin/gemacs |
# alias emacs=/usr/local/bin/gemacs |
13 |
# |
# |
33 |
x ) (emacs "$@" &) ;; |
x ) (emacs "$@" &) ;; |
34 |
sun ) (emacstool "$@" &) ;; |
sun ) (emacstool "$@" &) ;; |
35 |
esac |
esac |
36 |
else |
else |
37 |
if jobs %emacs 2> /dev/null ; then |
if jobs %emacs 2> /dev/null ; then |
38 |
echo "$(pwd)" "$@" >| ${HOME}/.emacs_args && fg %emacs |
echo "$(pwd)" "$@" >| ${HOME}/.emacs_args && fg %emacs |
39 |
else |
else |