summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-06-25 09:31:31 +0100
committerAlan Pearce2014-06-25 09:33:29 +0100
commitddcfb1818b220367de3705176e66b6a501512dae (patch)
treeb742f17ffa3aab24a5fc038ff43adc88abfbc7cb /tag-emacs
parent544384c1882892edc0dc7643e07fe8729b564de8 (diff)
downloaddotfiles-ddcfb1818b220367de3705176e66b6a501512dae.tar.lz
dotfiles-ddcfb1818b220367de3705176e66b6a501512dae.tar.zst
dotfiles-ddcfb1818b220367de3705176e66b6a501512dae.zip
Emacs: set default font in current and new frames
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 1cd34d2..5c8fdcf 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -100,7 +100,8 @@
     (when mono-face
       (let ((default-font (concat mono-face "-" (number-to-string font-size))))
         (add-to-list 'default-frame-alist `(font . ,default-font))
-        (set-face-font 'fixed-pitch default-font)))
+        (set-face-font 'fixed-pitch default-font)
+        (set-frame-font default-font t t)))
     (when variable-face
       (set-face-font 'variable-pitch (concat variable-face "-"
                                              (number-to-string (1+ font-size))))))