switch term to emacs mode