Add doom/reload-font command

This commit is contained in:
Henrik Lissner 2018-09-09 18:17:12 -04:00
parent 41743869af
commit 7b6dbe92c0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -141,6 +141,15 @@ windows (unlike `doom/window-zoom') Activate again to undo."
(maximize-window)) (maximize-window))
t))) t)))
;;;###autoload
(defun doom/reload-font ()
"Reload `doom-font', `doom-variable-pitch-font', and `doom-unicode-font', if
set."
(interactive)
(when (fontp doom-font)
(set-frame-font doom-font t))
(doom|init-fonts))
;; ;;
;; Modes ;; Modes