From fcf3e0f89f47cd377612406c62448b0bf626b389 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 26 May 2026 14:09:17 -0500 Subject: fix(org): widen the tag right-margin so the fold ellipsis fits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- modules/org-config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules') 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. -- cgit v1.2.3