Support window numbers of ace-window-display-mode.

This commit is contained in:
Vincent Zhang 2018-10-24 16:23:07 +08:00
parent bbda508825
commit 3d3c5c36c5

View file

@ -972,6 +972,11 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
(doom-modeline-def-segment window-number (doom-modeline-def-segment window-number
(setq winum-auto-setup-mode-line nil) (setq winum-auto-setup-mode-line nil)
(let ((num (cond (let ((num (cond
((bound-and-true-p ace-window-display-mode)
(setq mode-line-format
(assq-delete-all 'ace-window-display-mode
(default-value 'mode-line-format)))
(window-parameter (selected-window) 'ace-window-path))
((bound-and-true-p winum-mode) ((bound-and-true-p winum-mode)
(winum-get-number-string)) (winum-get-number-string))
((bound-and-true-p window-numbering-mode) ((bound-and-true-p window-numbering-mode)