[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62606: [PATCH] function to align mode-line elements to right
From: |
hugo |
Subject: |
bug#62606: [PATCH] function to align mode-line elements to right |
Date: |
Sat, 01 Apr 2023 23:27:31 +0100 |
User-agent: |
Roundcube Webmail/1.5.2 |
I wanted to be able to right-align some elements of the mode-line. I
used `tab-bar-format-align-right' as a base and modified it to work with
the mode-line.
The functin aligns to the right /fringe/ rather than the margin because
some modes (e.g. [visual-fill-column-mode]) mess around the margin size,
but the right-align should be unaffected by this.
Patch attached. I want to know that the code is good before I do NEWS
and docs etc. Obviously it would be useful to document this in info
(elisp) Mode Line Variables and maybe in the `mode-line-format'
docstring.
Blue skies,
Hugo
[visual-fill-column-mode]
<https://codeberg.org/joostkremers/visual-fill-column>
0001-Support-right-align-in-mode-line.patch
Description: Text Data
- bug#62606: [PATCH] function to align mode-line elements to right,
hugo <=