mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Show window number while the count of windows is greater than 2.
This commit is contained in:
parent
ed7027dbc9
commit
b8e73dc982
1 changed files with 2 additions and 1 deletions
|
@ -890,7 +890,8 @@ Returns \"\" to not break --no-window-system."
|
|||
(advice-add #'window-numbering-clear-mode-line :override #'ignore)
|
||||
|
||||
(doom-modeline-def-segment window-number
|
||||
(if (bound-and-true-p window-numbering-mode)
|
||||
(if (and (bound-and-true-p window-numbering-mode)
|
||||
(< 2 (length (window-list))))
|
||||
(propertize (format " %s " (window-numbering-get-number-string))
|
||||
'face (if (doom-modeline--active)
|
||||
'doom-modeline-bar
|
||||
|
|
Loading…
Reference in a new issue