In my .emacs
config file I have a following entry:
(custom-set-variables
(custom-set-faces
'(font-lock-comment-face ((((class color)
(min-colors 8)
(background dark))
(:foreground "red"))))))
This fixes the font color when TERM
environment variable is set to screen
, but breaks it when TERM
is set to xterm
. Is there a way to read value of TERM
variable and execute that code only if TERM
's value is screen
? I found this questin slightly helpful, but still I don't know how to read values of environment variables in elisp.