From 9c692eea2c0a906b8813b8ee7a64b267cbf6cfeb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 22 May 2019 23:42:59 +0800 Subject: [PATCH] Use window-configuration-change-hook instead of the advice. --- doom-modeline-segments.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 967a34b..bafab7a 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1247,8 +1247,7 @@ Returns \"\" to not break --no-window-system." (doom-modeline-refresh-bars val doom-modeline-height))))) (add-hook 'after-setting-font-hook #'doom-modeline-refresh-bars) -(advice-add #'set-face-attribute :after #'(lambda (&rest _) - (doom-modeline-refresh-bars))) +(add-hook 'window-configuration-change-hook #'doom-modeline-refresh-bars) ;;