Closed psionic-k closed 7 months ago
Not sure if you need this
(setopt doom-modeline-position-column-line-format '("%l:%3c"))
And make sure column-number-mode
and doom-modeline-column-zero-based
are non-nil.
That's basically my "workaround" before resorting to advice. I'm rendering commands right after that figure and really need it to be a bit more stable.
Did you check the behavior of emacs -Q
and (setq mode-line-position-column-line-format '(" (%l,%-3c)"))
?
I am not sure what's your expected.
That was helpful. mode-line-position-column-format
to (" C%-3c")
My only other complaint is that it's difficult to insert arbitrary items into the modeline, but I won't open an issue for that. I'm sure you're aware of the tradeoffs.
Thank you for the bug report
doom-modeline
related packages.emacs -Q
.Bug description
Setting
doom-modeline-position-column-line-format
to("%l:%-3c")
for example, adding flags to the column format specifier, doesn't get respected. Very specifically, "%5c" will work bu t"%-3c" will not.I think this is unrelated, but I noticed the string replacements here are assuming the specifiers have no flags: https://github.com/seagle0128/doom-modeline/blob/master/doom-modeline-segments.el#L1674-L1680C76
Steps to reproduce
Possibly some more to enable the column display.
Expected behavior
Right-padding added to the column number
OS
Linux
Emacs Version
29
Emacs Configurations
Custom
Error callstack
No response
Anything else
I worked around the issue using left padding for now to stabilize the width at low column numbers.