mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-27 11:09:49 +00:00
Optimize: update persp name.
This commit is contained in:
parent
900c501e1f
commit
eabb8fb56c
1 changed files with 5 additions and 4 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue