summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/.emacs.d/init.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el
index f2ab70a..8c46f79 100644
--- a/dotfiles/.emacs.d/init.el
+++ b/dotfiles/.emacs.d/init.el
@@ -50,8 +50,11 @@
"Return 't' if FONT exists."
(not (null (x-list-fonts font))))
-(when (font-exists-p "Inconsolata")
- (set-default-font "Inconsolata-11"))
+;; The font cannot be set until a frame has been created.
+(add-to-list 'after-make-frame-functions
+ (lambda (frame)
+ (when (font-exists-p "Inconsolata")
+ (set-default-font "Inconsolata-11"))))
(load-theme 'wombat t)
(column-number-mode t)