add emacs daemon support