From 947312d2096b3ad0f6006d3f3e1eb7f82005d79d Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 15 Feb 2019 21:22:13 +0800 Subject: [PATCH] Update advices for set-selected-window. --- doom-modeline-core.el | 3 +-- doom-modeline-segments.el | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index f272fcd..a31cf23 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -380,8 +380,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (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) -(advice-add #'make-frame :after #'doom-modeline-set-selected-window) +(advice-add #'select-frame :after #'doom-modeline-set-selected-window) (advice-add #'delete-frame :after #'doom-modeline-set-selected-window) (with-no-warnings (cond ((not (boundp 'after-focus-change-function)) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index b5b6f07..65d15ab 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1223,7 +1223,7 @@ mouse-2: Show help for minor mode" "Mode line construct for miscellaneous information. By default, this shows the information specified by `global-mode-string'." (if (doom-modeline--active) - '(" " mode-line-misc-info))) + '("" mode-line-misc-info))) ;;