.emacs file I have the following:
(setq default_font "Office Code Pro D") (when (member default_font (font-family-list)) (set-face-attribute 'default nil :family default_font :font default_font))
After startup, if I evaluation the
(when... function, my font family is set properly, but it is not set correctly when this file is sourced on startup.
After startup, if I check the value of
default_font it is (correctly)
Office Code Pro D, however, it does not set the font for my Emacs session unless I evaluate that part specifically.
Is there a reason why this does not get set in startup?
(Typically I run Emacs daemon on boot and this does not work).