help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Varying line spacing with font-locking in org


From: Ihor Radchenko
Subject: Re: Varying line spacing with font-locking in org
Date: Mon, 29 Jan 2024 16:45:50 +0000

Psionic K <psionik@positron.solutions> writes:

> I implemented element by element line spacing in org using font
> locking.  Here's a description of my method and some findings.
> ...
> The result is mostly satisfactory.  Two issues I ran into so far:
> 1. Org mode folding creates a situation where a different newline
> becomes the one considered for spacing and height.  This can likely be
> fixed by folding the trailing newline rather than the heading's
> newline (notified Org maintainer)

That's not trivial, but should be there on the latest main branch of Org
mode.

The reason why it is impossible to fold the trailing newline is simple:

* Heading
<begin fold>
<end fold>* Another heading

would look like

* Heading
...* Another heading

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]