summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-08-18 09:49:39 -0400
committerDavid Thompson <dthompson2@worcester.edu>2017-08-18 09:49:39 -0400
commitd21daf8b9f04dbf7175583deee33a4005d1c5454 (patch)
treeb27a35ceaf7d0d95ec2d342b57707f972e38db33
parentbfd7ac2c92bd66486a37aa92d729559e6f061996 (diff)
emacs: Fix default font configuration.
-rw-r--r--dotfiles/.emacs.d/init.el7
1 files 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)