# Emacs start script.

if [ "$DISPLAY" != "" ]
then

  /usr/local/bin/emacs -fg white -bg '#000066' \
                       --cursor-color red --mouse-color white -fn 10x20 \
                       --xrm=Emacs.pane.menubar.font:9x15 $* &

else

  if [ "$TERM" = "cygwin" -o "$TERM" = "" ]
  then
    TERM=ansi
    export TERM
  fi
  /usr/local/bin/emacs -nw -q $*

fi
