make 'emacs' smart and check for daemon otherwise fallback