#!/bin/bash

[ -z "$1" ] && echo "usage: $0 <host>" && exit

# this is a hack.. find a better way to figure out fully qualified
# name of local display.

HERE="$HOSTNAME$DISPLAY"

ssh $1 emacs-frame $HERE


# if [ -z "$DISPLAY" ]; then
#     exec ssh -t $1 emacs;
# else
#     black -e "ssh -t $1 emacs" &
# fi
