Switch to emacs mode in terminal