emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Adam Sneller <adam.sneller@ms2.digital>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Auto-activate new <<<radio targets>>>
Date: Sun, 07 Feb 2021 20:47:23 -0500	[thread overview]
Message-ID: <87o8gvxrdg.fsf@kyleam.com> (raw)
In-Reply-To: <86311E4A-E38F-4173-A662-922F82B7FCEB@ms2.digital>

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	other threads:[~2021-02-08  1:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-06 22:36 Adam Sneller
2021-02-08  1:47 ` Kyle Meyer [this message]
2021-02-08 13:44   ` John Kitchin
2021-02-08 17:43     ` Adam Sneller
2021-02-09  5:06       ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8gvxrdg.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=adam.sneller@ms2.digital \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Auto-activate new <<<radio targets>>>' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).