dotfiles/.local/bin/scripts/emacstty

8 lines
161 B
Plaintext
Raw Normal View History

#!/bin/sh
2022-06-22 15:59:29 +00:00
# Emacs in the terminal
2022-12-13 12:25:04 +00:00
pgrep --full "emacs .*-daemon" >/dev/null || emacs --daemon
emacsclient --create-frame --tty "$@"
exit=$?
stty sane
exit $exit