How can I set a different color if I am using emacs on terminal (emacs --no-window)?
I use a grey highlight line when using emacs with GUI because my background theme is white. Here is the code I use in my ~/.emacs
.
(global-hl-line-mode +1)
(set-face-attribute 'hl-line nil :inherit nil :background "#e6ffff")
However, when I am using emacs on terminal it has a default black background and this highlight colour looks awful.