emacs - fix issue on termianl, check the graphic mode.