mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 19:19:53 +00:00
Refactor: window numbers of winum.
This commit is contained in:
parent
9ca4edf710
commit
6d9020c428
1 changed files with 1 additions and 1 deletions
|
@ -972,7 +972,6 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
|
||||||
(advice-add #'winum--clear-mode-line :override #'ignore)
|
(advice-add #'winum--clear-mode-line :override #'ignore)
|
||||||
|
|
||||||
(doom-modeline-def-segment window-number
|
(doom-modeline-def-segment window-number
|
||||||
(setq winum-auto-setup-mode-line nil)
|
|
||||||
(let ((num (cond
|
(let ((num (cond
|
||||||
((bound-and-true-p ace-window-display-mode)
|
((bound-and-true-p ace-window-display-mode)
|
||||||
(setq mode-line-format
|
(setq mode-line-format
|
||||||
|
@ -980,6 +979,7 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
|
||||||
(default-value 'mode-line-format)))
|
(default-value 'mode-line-format)))
|
||||||
(window-parameter (selected-window) 'ace-window-path))
|
(window-parameter (selected-window) 'ace-window-path))
|
||||||
((bound-and-true-p winum-mode)
|
((bound-and-true-p winum-mode)
|
||||||
|
(setq winum-auto-setup-mode-line nil)
|
||||||
(winum-get-number-string))
|
(winum-get-number-string))
|
||||||
((bound-and-true-p window-numbering-mode)
|
((bound-and-true-p window-numbering-mode)
|
||||||
(window-numbering-get-number-string))
|
(window-numbering-get-number-string))
|
||||||
|
|
Loading…
Reference in a new issue