* Fontify emphasis markers
@ 2019-08-06 20:47 Matthew Newton
0 siblings, 0 replies; only message in thread
From: Matthew Newton @ 2019-08-06 20:47 UTC (permalink / raw)
To: emacs-orgmode
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’m 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-06 20:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-06 20:47 Fontify emphasis markers Matthew Newton
Code repositories for project(s) associated with this public 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).