mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Support window numbers of ace-window-display-mode.
This commit is contained in:
parent
bbda508825
commit
3d3c5c36c5
1 changed files with 5 additions and 0 deletions
|
@ -972,6 +972,11 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
|
|||
(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
|
||||
(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)
|
||||
(winum-get-number-string))
|
||||
((bound-and-true-p window-numbering-mode)
|
||||
|
|
Loading…
Reference in a new issue