ensure that emacs plays nice in terminal