Updated emacs/general.el to aviod errors on terminal sessions.