ec () { if (( ${+INSIDE_EMACS} )); then emacsclient -n "$@" else emacsclient -nc "$@" fi }