#!/bin/sh
# Emacs in the terminal
pgrep --full "emacs" >/dev/null || emacs --daemon
emacsclient --create-frame --tty "$@"
exit=$?
stty sane
exit $exit