emacs as a terminal emulator