From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Newton Subject: Fontify emphasis markers Date: Tue, 6 Aug 2019 13:47:44 -0700 Message-ID: <35F5A1C7-C8C3-42A6-AA89-1E0C049AEDCE@mnewton.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37677) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv6N4-0008SK-R1 for emacs-orgmode@gnu.org; Tue, 06 Aug 2019 16:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hv6N4-00007i-09 for emacs-orgmode@gnu.org; Tue, 06 Aug 2019 16:47:50 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:34055) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hv6N3-00006G-MV for emacs-orgmode@gnu.org; Tue, 06 Aug 2019 16:47:49 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DF1144F3 for ; Tue, 6 Aug 2019 16:47:46 -0400 (EDT) Received: from [192.168.0.115] (157-131-251-49.fiber.dynamic.sonic.net [157.131.251.49]) by mail.messagingengine.com (Postfix) with ESMTPA id 632CA80062 for ; Tue, 6 Aug 2019 16:47:45 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi Org folks, I want to fontify emphasis markers differently than the actual = emphasized text so as to de-emphasize (!) them. I noticed that = `org-do-emphasis-faces` is responsible for hiding emphasis markers so I = added a section like this to it: (font-lock-prepend-text-property (match-end 4) (match-beginning 5) 'face 'org-emphasis-marker-face) (font-lock-prepend-text-property (match-beginning 3) (match-end 3) 'face 'org-emphasis-marker-face) I=E2=80=99m not wild about doing it this way since I have to redefine = the entire `org-do-emphasis-faces` function in my own config. Questions: 1. Was that the correct approach? 2. Does anyone else find this useful? 3. If useful, do you want a small patch? Cheers, Matt=