diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 4d736aa..050cd44 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1240,7 +1240,7 @@ mouse-2: Show help for minor mode" (add-hook 'find-file-hook #'doom-modeline-update-persp-name) (add-hook 'persp-activated-functions #'doom-modeline-update-persp-name) (add-hook 'persp-renamed-functions #'doom-modeline-update-persp-name) -(advice-add #'select-window :after #'doom-modeline-update-persp-name) +(add-hook 'buffer-list-update-hook #'doom-modeline-update-persp-name) (doom-modeline-def-segment persp-name "The current perspective name."