mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Merge pull request #135 from Alexander-Miller/select-window
Use buffer-list-update-hook instead of advising select-window.
This commit is contained in:
commit
77cf8a45c4
1 changed files with 1 additions and 1 deletions
|
@ -383,8 +383,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
|
|||
(force-mode-line-update))
|
||||
|
||||
(add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window)
|
||||
(add-hook 'buffer-list-update-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 #'delete-frame :after #'doom-modeline-set-selected-window)
|
||||
(with-no-warnings
|
||||
|
|
Loading…
Reference in a new issue