aboutsummaryrefslogtreecommitdiff
path: root/modules/org-config.el
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
commitc3f9e6b29a61d5b6bda32def809b4e4d451fb40d (patch)
tree5522ef3d28485dc10e2fb03f4b148194fcc552c2 /modules/org-config.el
parent32c5015510bb632e64e3be3902caddacfa4aefa7 (diff)
downloaddotemacs-c3f9e6b29a61d5b6bda32def809b4e4d451fb40d.tar.gz
dotemacs-c3f9e6b29a61d5b6bda32def809b4e4d451fb40d.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/org-config.el')
-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 abcc35ac2..c0c6bb82d 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.