Refactor: window numbers of winum.

This commit is contained in:
Vincent Zhang 2018-10-25 00:56:09 +08:00
parent 9ca4edf710
commit 6d9020c428

View file

@ -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)
(doom-modeline-def-segment window-number
(setq winum-auto-setup-mode-line nil)
(let ((num (cond
((bound-and-true-p ace-window-display-mode)
(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)))
(window-parameter (selected-window) 'ace-window-path))
((bound-and-true-p winum-mode)
(setq winum-auto-setup-mode-line nil)
(winum-get-number-string))
((bound-and-true-p window-numbering-mode)
(window-numbering-get-number-string))