From eabfed0068358d90d7382c412df8c75bb7642b2f Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Wed, 6 Mar 2019 12:48:33 +0100 Subject: [PATCH] Use buffer-list-update-hook instead of advising select-window. --- doom-modeline-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 0f3765b..395b6b3 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -386,8 +386,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (force-mode-line-update)) (add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window) +(add-hook 'buffer-list-update-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) (advice-add #'make-frame :after #'doom-modeline-set-selected-window) (advice-add #'delete-frame :after #'doom-modeline-set-selected-window) (with-no-warnings