Next: , Previous: , Up: Customisation  


Q3.1.2: How can I detect a color display?

You can test the return value of the function (device-class), as in:

(when (eq (device-class) 'color)
  (set-face-foreground  'font-lock-comment-face "Grey")
  (set-face-foreground  'font-lock-string-face  "Red")
  ....
  )