[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add font-lock rule for inline export snippets
From: |
Timothy |
Subject: |
Re: [PATCH] Add font-lock rule for inline export snippets |
Date: |
Wed, 28 Apr 2021 15:23:29 +0800 |
User-agent: |
mu4e 1.4.15; emacs 28.0.50 |
Timothy <tecosaur@gmail.com> writes:
> Hello,
>
> The latest in my visually-oriented (mostly) short patch series, adding
> basic fontification to inline export snippets --- @@comment:these things@@.
>
> I think fontification for stuff like this is nice because it visually
> indicates to the user that they've written out an Org construct, and
> haven't just mis-remembered / imagined some syntax.
>
> In future this could be extended to use native fontification for
> recognised export formats (like src blocks do), but I think this is a
> nice improvement over nothing.
This addition to the font-lock regexps is quite simple, and doesn't
contain anything fancy/expensive (like backtracking), so I don't expect
there to be any performance concerns --- but it would be good to hear
from others :)
I considered limiting this to no-newlines, but
https://orgmode.org/worg/dev/org-syntax.html says anything other than @@
is allowed.
--
Timothy
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] Add font-lock rule for inline export snippets,
Timothy <=