diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-09-13 16:46:04 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-09-13 16:46:04 +0100 |
commit | e78bebbf552e73f2a2ea00ef22aa46f758d5b093 (patch) | |
tree | 10e8fa6801fecad92be6ee5834f8fe07b60732ad /.emacs.d/lisp | |
parent | d7228a12597cd444f0a3694f13a36585a41aea56 (diff) | |
download | dotfiles-e78bebbf552e73f2a2ea00ef22aa46f758d5b093.tar.gz |
Don't try to change font to one that doesn't exist
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-ui.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-ui.el b/.emacs.d/lisp/init-ui.el index 1e3c8fb..e0c0908 100644 --- a/.emacs.d/lisp/init-ui.el +++ b/.emacs.d/lisp/init-ui.el @@ -6,7 +6,11 @@ (use-package emacs :config - (set-face-attribute 'default nil :font "iosevka comfy") + (cond + ((find-font (font-spec :name "iosevka comfy")) + (set-face-attribute 'default nil :font "iosevka comfy")) + ((find-font (font-spec :name "iosevka")) + (set-face-attribute 'default nil :font "iosevka"))) ;; https://github.com/rougier/elegant-emacs/blob/master/sanity.el (setq inhibit-startup-screen t |