aboutsummaryrefslogtreecommitdiff
path: root/modules/selection-framework.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-26 14:00:35 -0500
committerCraig Jennings <c@cjennings.net>2026-05-26 14:00:35 -0500
commit32c5015510bb632e64e3be3902caddacfa4aefa7 (patch)
tree42f50fcf1be66e755dc4ab273c1a79b744e4f64b /modules/selection-framework.el
parent964470da0a169de03a442803fced8a7295314355 (diff)
downloaddotemacs-32c5015510bb632e64e3be3902caddacfa4aefa7.tar.gz
dotemacs-32c5015510bb632e64e3be3902caddacfa4aefa7.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 'modules/selection-framework.el')
0 files changed, 0 insertions, 0 deletions