From 6e30cfad01e6b995d36489fc7cfae6898fee88b2 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 28 Oct 2018 02:51:18 +0800 Subject: [PATCH] Update mode-line forcely after making a new frame. --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index dc62a64..d99a1ac 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -390,6 +390,7 @@ active.") (setq doom-modeline-current-window nil) (force-mode-line-update)) +(add-hook 'after-make-frame-functions (lambda () (force-mode-line-update))) (add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window) (advice-add #'handle-switch-frame :after #'doom-modeline-set-selected-window) (advice-add #'select-window :after #'doom-modeline-set-selected-window)