From d21daf8b9f04dbf7175583deee33a4005d1c5454 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 18 Aug 2017 09:49:39 -0400 Subject: emacs: Fix default font configuration. --- dotfiles/.emacs.d/init.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el index 60bc40f..a04f959 100644 --- a/dotfiles/.emacs.d/init.el +++ b/dotfiles/.emacs.d/init.el @@ -74,11 +74,8 @@ "Return 't' if FONT exists." (not (null (x-list-fonts font)))) -;; 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-12")))) +(when (font-exists-p "Inconsolata") + (set-frame-font "Inconsolata-12" nil t)) (load-theme 'wombat t) (column-number-mode t) -- cgit v1.2.3