I'd like the size of the default face be read in an environment variable.
Currently my .emacs
reads the frame size from the EMACS_HEIGHT var thanks to the following code in the (custom-set-variables ...)
list:
'(default-frame-alist
(cons
(cons (quote height) (string-to-int (getenv "EMACS_HEIGHT")))
(quote ((menu-bar-lines . 1) (tool-bar-lines . 0) (width . 82)))))
I tried to adapt it to "insert" a similar getenv directive into the line which sets the default face (in (custom-set-faces ...)
):
'(default ((t (:inherit nil :stipple nil :background "grey80" :foreground "black"
:inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 110
:width normal foundry :"unknown" :family "Droid Sans Mono"))))
but didn't succeed. Or, rather, I may achieve my goal with something like
(cons ':inherit (cons nil (cons ':weight (cons 'normal (cons ':height (cons
(string-to-int (getenv "EMACS_HEIGHT")) '(:foundry "unknown")))))))
but using one cons
per item looks like much ado (and a waste of parentheses).