diff options
author | Alan Pearce | 2014-06-25 09:31:31 +0100 |
---|---|---|
committer | Alan Pearce | 2014-06-25 09:33:29 +0100 |
commit | ddcfb1818b220367de3705176e66b6a501512dae (patch) | |
tree | b742f17ffa3aab24a5fc038ff43adc88abfbc7cb /tag-emacs/emacs.d | |
parent | 544384c1882892edc0dc7643e07fe8729b564de8 (diff) | |
download | nixfiles-ddcfb1818b220367de3705176e66b6a501512dae.tar.lz nixfiles-ddcfb1818b220367de3705176e66b6a501512dae.tar.zst nixfiles-ddcfb1818b220367de3705176e66b6a501512dae.zip |
Emacs: set default font in current and new frames
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 1cd34d28..5c8fdcf4 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)))))) |