mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Update mode-line after new or delete a frame.
This commit is contained in:
parent
d97080620e
commit
11327006cf
1 changed files with 2 additions and 0 deletions
|
@ -393,6 +393,8 @@ active.")
|
||||||
(add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window)
|
(add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window)
|
||||||
(advice-add #'handle-switch-frame :after #'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 #'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
|
(with-no-warnings
|
||||||
(cond ((not (boundp 'after-focus-change-function))
|
(cond ((not (boundp 'after-focus-change-function))
|
||||||
(add-hook 'focus-in-hook #'doom-modeline-set-selected-window)
|
(add-hook 'focus-in-hook #'doom-modeline-set-selected-window)
|
||||||
|
|
Loading…
Reference in a new issue