FRAME=$DISPLAY [ -z "$1" ] || FRAME=$1 emacsclient -e "(make-frame-on-display \"$FRAME\")" [ -z "$2" ] || emacsclient -e "$2"