#!/bin/sh
if emacsclient $* 2>/dev/null
then
  echo
  exit 0
else
  exec emacs -nw $*
fi
