
https://emacs.stackexchange.com/questions/73367/preventing-emacsclient-eval-from-messing-up-my-terminal
7 lines
160 B
Bash
Executable file
7 lines
160 B
Bash
Executable file
#!/bin/sh
|
|
# Emacs in the terminal
|
|
pgrep --full "emacs --daemon" >/dev/null || emacs --daemon
|
|
emacsclient --create-frame --tty "$@"
|
|
exit=$?
|
|
stty sane
|
|
exit $exit
|