From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AMxxBl+YIGA+AwAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 01:48:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gKC6AV+YIGBQGgAAbx9fmQ (envelope-from ) for ; Mon, 08 Feb 2021 01:48:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A899E940251 for ; Mon, 8 Feb 2021 01:48:09 +0000 (UTC) Received: from localhost ([::1]:41202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8vep-0007qF-BB for larch@yhetil.org; Sun, 07 Feb 2021 20:48:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8veF-0007px-Hz for emacs-orgmode@gnu.org; Sun, 07 Feb 2021 20:47:34 -0500 Received: from out0.migadu.com ([94.23.1.103]:35752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8veD-0006Qk-4X for emacs-orgmode@gnu.org; Sun, 07 Feb 2021 20:47:31 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1612748845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fSrjcCU/KDbpoEfXf8ouZnmTB+EVs1CvdoRficYHgVE=; b=O/CM147KKS+I8uR7UfeeEB0dZVzO1VoJLicpz6Qz6LiCY4qSM6jZflZb6+ssLKUXMvqqre gskVcoD/EB7WuiuGQ+M3x5ThKg1FMCDCBMy4iXtDAC3bk0eXn4b7Nb6EemOU5ftXu1x441 xX1lv1KkrcYw6H//dF1Z5T4MtaskHzSxse8iN4bmNOmM+vz/wpusO59n/yFA+tV2CwiR7E 0FehSX6WMKaJNNtgmYOE6U01o3jaJ49FWEWU/TOgOra0xFJnEe4mOlzGhHLrQpKUKMc2/5 0z3KFM4Mxdz1QPm4QqCSEVxOnvMgkqZtgqrlTX7QgK/fWsTgyS1ukhLdGQp6aA== From: Kyle Meyer To: Adam Sneller Subject: Re: Auto-activate new <<>> In-Reply-To: <86311E4A-E38F-4173-A662-922F82B7FCEB@ms2.digital> References: <86311E4A-E38F-4173-A662-922F82B7FCEB@ms2.digital> Date: Sun, 07 Feb 2021 20:47:23 -0500 Message-ID: <87o8gvxrdg.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=94.23.1.103; envelope-from=kyle@kyleam.com; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b="O/CM147K"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A899E940251 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZDrS1SSb2tdi Adam Sneller writes: > I want to call org-update-radio-target-regexp as soon as org-mode > recognises a new <<>> 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 <<>> 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 <<> will call org-update-radio-target-regexp.