theurgy/emacs-open

6 lines
173 B
Bash
Executable file

#!/bin/bash
if [ -n "$*" ]; then
exec /usr/bin/emacsclient --alternate-editor= --display="$DISPLAY" "$@"
else
exec emacsclient --alternate-editor= --create-frame
fi