mirror of
https://github.com/fscotto/infra.git
synced 2026-09-27 19:03:47 +00:00
16 lines
369 B
Bash
16 lines
369 B
Bash
if command -v emacsclient >/dev/null 2>&1; then
|
|
ec() {
|
|
emacsclient -c -n "$@" || {
|
|
printf '%s\n' "Emacs server is not available. Start Emacs or run M-x server-start." >&2
|
|
return 1
|
|
}
|
|
}
|
|
|
|
et() {
|
|
emacsclient -t "$@" || {
|
|
printf '%s\n' "Emacs server is not available. Start Emacs or run M-x server-start." >&2
|
|
return 1
|
|
}
|
|
}
|
|
fi
|