add window mode to emacs