From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KGo4DVWXjF9MJAAA0tVLHw (envelope-from ) for ; Sun, 18 Oct 2020 19:28:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qL0OCVWXjF9GTwAA1q6Kng (envelope-from ) for ; Sun, 18 Oct 2020 19:28:21 +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 7DD6694036A for ; Sun, 18 Oct 2020 19:28:20 +0000 (UTC) Received: from localhost ([::1]:60202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUELq-0007vy-7a for larch@yhetil.org; Sun, 18 Oct 2020 15:28:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUELJ-0007vr-CG for emacs-orgmode@gnu.org; Sun, 18 Oct 2020 15:27:45 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:53635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUELG-0002Ue-Mu for emacs-orgmode@gnu.org; Sun, 18 Oct 2020 15:27:44 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id C362D10FE77; Sun, 18 Oct 2020 15:27:38 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=YsZDawg9s8YMJ6RLtemsPQ8VLCc=; b=rUwnG3 NCoN879tn0DQAmeIjJN5+eMKtWdajE6s3oK9S+ZRw1SrAd3sGHnOiiG2hzsTT6xr eh/prIt0XriKcS2AiDbMiubjXjCQJNa59jLG7ngj7AUH6Rj5QdSvLAT5P0QqxjVU X6tiCMrC0O5565EHrOIUN0wzh2nxJ0Dmx29ZQ= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id BC3EF10FE76; Sun, 18 Oct 2020 15:27:38 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=Dl9ws49izxmU09SnAc3B3nvXmN9YEod0RFHnI+4yMQU=; b=2LXxhYcOdzUUjasfBBZ4FRMri7LpQ4fOYXLMdEYmnyMNIhvhxYWNOvRKRTtHSMUATTsjXzh9LuBMQcgI57FjPy3BVd1eu/2UAyiwMUhSaV/9lYJ3w0rWGW4zYpN56azB+oC9FW9G6QzQRvgIO5J03FQCBfnkxySf/VqlehWIYBE= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 31FDE10FE74; Sun, 18 Oct 2020 15:27:36 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Peter Bienstman Subject: Re: Disabling automatic links for timestamps and tags In-Reply-To: References: <87v9fikse7.fsf@kyleam.com> <87mu0t8hfw.fsf@kyleam.com> Date: Sun, 18 Oct 2020 15:27:34 -0400 Message-ID: <87r1pvz655.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: FA3FCB48-1177-11EB-9209-E43E2BB96649-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/18 15:27:38 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=rUwnG3 N; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=2LXxhYcO; 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-Spam-Score: -1.21 X-TUID: vmw8S214rqdK Peter Bienstman writes: > Thanks! Is there a way to achieve this while still keeping the syntax > highlighting intact? I'm not aware of a built-in option to do that. If you want to come up with a custom solution, the code to study is org-set-font-lock-defaults, which in turn calls org-activate-tags and org-activate-dates. You could override -activate-tags and -activate-dates to not apply the mouse-face and keymap properties. Or perhaps just remove them afterwards: (defun my/org-discard-mouse (&rest _) (remove-text-properties (match-beginning 1) (match-end 1) '(mouse-face nil keymap nil)) t) (advice-add 'org-activate-tags :after-while #'my/org-discard-mouse) (advice-add 'org-activate-dates :after-while #'my/org-discard-mouse)