elisp - In Emacs theme definition, why are there structures like (t (:background "black")) -


enter image description here

why theme definitions contain structures (t (:background "black"))? role of t?

the sexp ((t (:foreground ... ))) face specification described here: http://www.gnu.org/software/emacs/manual/html_node/elisp/defining-faces.html

in short, alist of form (display . plist) , hence in code t corresponds display , (:background... ) plist. plist property list of face attributes, , i'm not going talk since it's not relevant question. however, display can take other values t. aforementioned documentation describes display as:

the display part of element of spec determines terminals element matches.

and value t means:

this element of spec matches terminals.

however, more selective , define face attributes apply terminals, instance support color.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -