aboutsummaryrefslogtreecommitdiff
path: root/githooks/pre-commit
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
commit6319274992aaa88b820c98d8c06b93717105f183 (patch)
tree0324cc90a52fc6ede62c4ae19a93499c593e50c3 /githooks/pre-commit
parentdb83a4975be50b5c579b0a075acd952f8135a73f (diff)
downloaddotemacs-6319274992aaa88b820c98d8c06b93717105f183.tar.gz
dotemacs-6319274992aaa88b820c98d8c06b93717105f183.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 'githooks/pre-commit')
0 files changed, 0 insertions, 0 deletions