mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Use buffer-list-update-hook instead of advising select-window.
Follow #135.
This commit is contained in:
parent
77cf8a45c4
commit
52f46c1baf
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ mouse-2: Show help for minor mode"
|
||||||
(add-hook 'find-file-hook #'doom-modeline-update-persp-name)
|
(add-hook 'find-file-hook #'doom-modeline-update-persp-name)
|
||||||
(add-hook 'persp-activated-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)
|
(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
|
(doom-modeline-def-segment persp-name
|
||||||
"The current perspective name."
|
"The current perspective name."
|
||||||
|
|
Loading…
Reference in a new issue