Emacs: GUI with emacs --daemon not loading fonts correctly

phimuemue picture phimuemue · Oct 21, 2010 · Viewed 7.6k times · Source

I set up an emacs --daemon in order to startup emacs faster. I like especially the GUI version of emacs, so I do emacsclient -c to open a new emacs frame.

The problem is that I have changed my fonts, but these fonts aren't loaded if I start emacsclient -c. However, they are applied if I start just emacs (but this causes the whole .emacs to be evaluated).

So: Is there a way of applying my font settings also if I start emacs with emacsclient -c?

Answer

monotux picture monotux · Oct 21, 2010

In short, you have to use default-frame-alist for that. Like this:

(setq default-frame-alist '((font . "Inconsolata-dz-15")))

This will be evaluated every time you start a new, graphical frame in Emacs. This is also where you save other frame-related settings, like settings for your fringe and such.