emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Auto-activate new <<<radio targets>>>


From: John Kitchin
Subject: Re: Auto-activate new <<<radio targets>>>
Date: Mon, 8 Feb 2021 08:44:06 -0500

I guess the place to do it is with an advice on org-activate-links. Maybe a simple after advice would do.

John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803


On Sun, Feb 7, 2021 at 8:48 PM Kyle Meyer <kyle@kyleam.com> wrote:
Adam Sneller writes:

> I want to call org-update-radio-target-regexp as soon as org-mode
> recognises a new <<<radio target>>> has been created (which seems to
> happen as soon as the third ">" is typed).
>
> What hook can I use to get this done?

I'm not spotting any hook that could be used for this.  The <<<target>>>
fontification happens through a simple 'regular _expression_ => face'
mapping in org-font-lock-keywords.

You're probably aware of this and it's just not as automatic as you'd
like, but just in case: pressing `C-c C-c' with point on <<<target>>
will call org-update-radio-target-regexp.


reply via email to

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