Added ability to start emacs in the terminal.