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: Kyle Meyer
Subject: Re: Auto-activate new <<<radio targets>>>
Date: Tue, 09 Feb 2021 00:06:18 -0500

Adam Sneller writes:

> Thanks John! It looks like there is also an org-activate-target-links
> which may narrow the field a bit. Here is what I have so far:
>
> (defadvice org-activate-target-links (after ad-update-target-links ())
>   "Activate radio target links as soon as a new target is created."
>   (lambda ()
>     (interactive)
>     (when (and (org-in-regexp org-target-regexp)
>              (not (org-in-regexp org-target-regexp nil t)))
>       (org-update-radio-target-regexp))))
> (ad-activate 'org-activate-target-links)
>
> Unfortunately, this is not working for me...
>
> Any ideas?

org-activate-target-links _depends_ on org-update-radio-target-regexp
being called to update org-target-link-regexp, so I don't think it's a
candidate for a place to hook into if you want
org-update-radio-target-regexp to be triggered on typing <<<target>>>.



reply via email to

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