Fix emacs in terminal