Add doom/reload-font command

This commit is contained in:
Henrik Lissner
2018-09-09 18:17:12 -04:00
parent 41743869af
commit 7b6dbe92c0

View File

@ -141,6 +141,15 @@ windows (unlike `doom/window-zoom') Activate again to undo."
(maximize-window))
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