Q: how can I abbreviate the version control information in the mode line?
Buffers visiting a file under version control display branch information in the mode line as VCtype-branch
. That's fine, but my mode line is already quite cluttered, so I'd like to abbreviate that information if possible. I can always use short branch names, but I'm wondering if I can at least shorten the VCtype
information (eg, Git-mybranch
=> G-mybranch
). How would I do this?
PS My understanding (which could be wrong) is that diminish
would not be relevant in this situation.
mode-line-format
might be a great option for you.