Add emacs and set TERM