Simplify doom/load-font & doom/load-theme; don't keep state

This commit is contained in:
Henrik Lissner 2016-10-07 00:25:36 +02:00
parent a513b5aa81
commit ea2121ffeb

View file

@ -30,18 +30,14 @@
;;;###autoload ;;;###autoload
(defun doom/load-font (font) (defun doom/load-font (font)
(interactive) (interactive)
(set-frame-font font t) (set-frame-font font t))
(setq doom-ui-font font))
;;;###autoload ;;;###autoload
(defun doom/load-theme (theme &optional suppress-font) (defun doom/load-theme (theme)
(interactive) (interactive)
(when doom-ui-theme (when doom-ui-theme
(disable-theme doom-ui-theme)) (disable-theme doom-ui-theme))
(load-theme theme t) (load-theme theme t))
(unless suppress-font
(doom/load-font doom-ui-font))
(setq doom-ui-theme theme))
;;;###autoload ;;;###autoload
(defun doom/show-as (how &optional pred) (defun doom/show-as (how &optional pred)