From eabb8fb56cdad04fc786dcb28cc5fa9f282f5dc0 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 10 Dec 2018 02:25:37 +0800 Subject: [PATCH] Optimize: update persp name. --- doom-modeline.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index e09e03f..691baa2 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -1333,12 +1333,13 @@ Requires `eyebrowse-mode' to be enabled." (add-hook 'find-file-hook #'doom-modeline-update-persp-name) (add-hook 'after-revert-hook #'doom-modeline-update-persp-name) -(add-hook 'persp-after-load-state-functions #'doom-modeline-update-persp-name) -(add-hook 'persp-created-functions #'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) -(advice-add #'persp-add-buffer :after #'doom-modeline-update-persp-name) -(advice-add #'persp-remove-buffer :after #'doom-modeline-update-persp-name) +;; (advice-add #'persp-window-switch :after #'doom-modeline-update-persp-name) +;; (advice-add #'persp-frame-switch :after #'doom-modeline-update-persp-name) +;; (advice-add #'persp-add-buffer :after #'doom-modeline-update-persp-name) +;; (advice-add #'persp-remove-buffer :after #'doom-modeline-update-persp-name) (doom-modeline-def-segment persp-name "The current perspective name."