I'm currenty using emacs line highlighting and I found it useful when doing my work in GUI version of emacs. However, I find it uncomfortable to have such mode during my work in terminal. The color of higlight there makes current line being edited almost impossible to read.
The line in my .emacs
file which is responsible for enabling this mode globally is: (global-hl-line-mode t)
.
My question is: is there a way to disable hl-line-mode
only in terminal? I'm using xfce4-terminal and guake.
display-graphic-p
now, instead ofwindow-system
. I can't give you the reasons why. See the Elisp manual, node Display Feature Testing. – Drew Jul 01 '16 at 03:53(display-graphic-p)
(with brackets) butwindow-system
(without brackets). Nonetheless, both solutions seem to work fine. – threaz Jul 01 '16 at 08:59window-system
is a single variable that tells if there is a window system for the original frame of emacs.display-graphic-p
is a function that can tell you if a particular frame is graphical. With emacs-client/server, you can actually have frames on both graphic and text-only displays. – MAP Jul 02 '16 at 06:28