aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-26 14:09:17 -0500
committerCraig Jennings <c@cjennings.net>2026-05-26 14:09:17 -0500
commitfcf3e0f89f47cd377612406c62448b0bf626b389 (patch)
tree35ba5dc5c59a943f48f1203dd8fb70658cd8ed6e /modules
parent6319274992aaa88b820c98d8c06b93717105f183 (diff)
downloaddotemacs-fcf3e0f89f47cd377612406c62448b0bf626b389.tar.gz
dotemacs-fcf3e0f89f47cd377612406c62448b0bf626b389.zip
fix(org): widen the tag right-margin so the fold ellipsis fits
The right-aligned tags stopped one column short of the edge, which kept the line from wrapping but left no room for the folded-heading ellipsis (org-ellipsis, " ▾") that org appends after the tags. The ▾ overflowed onto its own line and showed up as a stray triangle between headings. I widened the margin to 5 columns so the tag and the trailing ellipsis both stay on the heading line.
Diffstat (limited to 'modules')
-rw-r--r--modules/org-config.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index abcc35ac..c0c6bb82 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -108,10 +108,12 @@
Group 1 is the single gap character before the tags; group 2 is the tag
string itself.")
-(defconst cj/org-tag-right-margin 1
+(defconst cj/org-tag-right-margin 5
"Columns of gap left between right-aligned tags and the window's right edge.
-At least 1: a glyph filling the final column makes a non-truncated line wrap,
-so the tags must stop short of the edge.")
+At least 1 keeps a glyph out of the final column, which would wrap a
+non-truncated line. The extra columns leave room for the folded-heading
+ellipsis (`org-ellipsis', \" ▾\") that org appends after the tags, so it
+stays on the heading line instead of wrapping onto its own line.")
(defun cj/org--tag-align-spec (tag-string)
"Return a display spec that right-aligns TAG-STRING to the window edge.