diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 14:00:35 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 14:00:35 -0500 |
| commit | 1325be4ff78bbc448ba20ad76fd76b4ad778e248 (patch) | |
| tree | 6b294fc2b7453eda3439fa57b97c0411284f6a01 /tests/test-custom-buffer-file-print-diff-eww.el | |
| parent | e01d8b72ee4ce498fff16b3d4395b55c6d9d00bb (diff) | |
| download | dotemacs-1325be4ff78bbc448ba20ad76fd76b4ad778e248.tar.gz dotemacs-1325be4ff78bbc448ba20ad76fd76b4ad778e248.zip | |
feat(org): right-align headline tags to the window edge
org-tags-column only right-aligns tags to a fixed column, and it does so by baking literal spaces into the file, so it can't track window width or splits. I set it to 0 (org keeps a single space, no padding) and add a font-lock rule that stretches that space with a display property pinned to the window's right edge via :align-to. That value resolves at redisplay, so the tags follow the window width and adapt to splits live, and nothing alignment-specific is written to disk.
The tags stop one column short of the edge on purpose. A glyph filling the final column wraps a non-truncated line, which dropped every tagged heading's tags onto the next line in the first cut. org-agenda-tags-column gets 'auto, the native equivalent for agenda views. Tests cover the heading regexp and the align-spec helper.
Diffstat (limited to 'tests/test-custom-buffer-file-print-diff-eww.el')
0 files changed, 0 insertions, 0 deletions
