From 2a45b80e2a77a1966c4df8669d88862a5f04d554 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 15 Mar 2018 04:49:49 -0400 Subject: [PATCH] Revert cfe2fe87; needs better checks --- core/core-ui.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 89b205404..0aa56965c 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -417,8 +417,6 @@ character that looks like a space that `whitespace-mode' won't affect.") ;; Theme & font ;; -(defvar doom-last-frame-type window-system) - (defun doom|init-theme () "Set the theme and load the font, in that order." (when doom-theme @@ -461,9 +459,7 @@ character that looks like a space that `whitespace-mode' won't affect.") ;; frames, however. There's always `doom//reload-theme' if you need it! (defun doom|init-theme-in-frame (frame) "Reloads the theme in new daemon or tty frames." - (when (and (not (eq doom-last-frame-type window-system)) - (or (daemonp) (not (display-graphic-p)))) - (setq doom-last-frame-type window-system) + (when (or (daemonp) (not (display-graphic-p))) (with-selected-frame frame (doom|init-theme))))