Open olegbc1 opened 6 years ago
Maybe the customize
variables winum-auto-setup-mode-line
and winum-mode-line-position
are what you are looking for ?
See https://github.com/deb0ch/emacs-winum/blob/master/winum.el#L134 or the winum
group in customize
for documentation
Add winum-format customize variable Format string for displaying the window number in the mode-line. Default to ” %n ” to get a space on each side of the window number.
That sounds exciting!
Hi again,
after such a long time I realised that I was completely beside the point 😅
What we push automatically in the mode-line is '(:eval (winum-get-number-string))
so just inserting that in your mode-line-format
would work for you.
If you want something more custom you can use
'(:eval (format "[%s]" (winum-get-number-string)))`
I am about to push the feature @hello-code mentionned, soon there will be a winum-mode-line-format
variable that is literally the format string supplied to the format
function in my second snippet.
I use winum to switch between windows in emacs, however I am struggling to display window number in my mode-line, preferably in [#] format (i.e. [1] [2] [3] ...).
What variable can I use to append window number to my mode-line-format list? Please see below an example of my mode-line configuration.