diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 14:09:17 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 14:09:17 -0500 |
| commit | 50a1b0aa288736677160d6dd6545b53c4e77d63e (patch) | |
| tree | 5f03a92f14d7e2cec5f94e7cd66fcf3ccf771009 /modules | |
| parent | c764e2667fccc175961d594c5b8039d5d08ce8cb (diff) | |
| download | dotemacs-50a1b0aa288736677160d6dd6545b53c4e77d63e.tar.gz dotemacs-50a1b0aa288736677160d6dd6545b53c4e77d63e.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.el | 8 |
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. |
