Minor changes for emacs in terminal.