mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update mode-line forcely after making a new frame.
This commit is contained in:
parent
70f896fffb
commit
6e30cfad01
1 changed files with 1 additions and 0 deletions
|
@ -390,6 +390,7 @@ active.")
|
||||||
(setq doom-modeline-current-window nil)
|
(setq doom-modeline-current-window nil)
|
||||||
(force-mode-line-update))
|
(force-mode-line-update))
|
||||||
|
|
||||||
|
(add-hook 'after-make-frame-functions (lambda () (force-mode-line-update)))
|
||||||
(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)
|
||||||
|
|
Loading…
Reference in a new issue