mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Use window-configuration-change-hook instead of the advice.
This commit is contained in:
parent
376e6fb54a
commit
9c692eea2c
1 changed files with 1 additions and 2 deletions
|
@ -1247,8 +1247,7 @@ Returns \"\" to not break --no-window-system."
|
||||||
(doom-modeline-refresh-bars val doom-modeline-height)))))
|
(doom-modeline-refresh-bars val doom-modeline-height)))))
|
||||||
|
|
||||||
(add-hook 'after-setting-font-hook #'doom-modeline-refresh-bars)
|
(add-hook 'after-setting-font-hook #'doom-modeline-refresh-bars)
|
||||||
(advice-add #'set-face-attribute :after #'(lambda (&rest _)
|
(add-hook 'window-configuration-change-hook #'doom-modeline-refresh-bars)
|
||||||
(doom-modeline-refresh-bars)))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue