[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug? Combine emphasis marker faces?
From: |
Juan Manuel Macías |
Subject: |
Re: Possible bug? Combine emphasis marker faces? |
Date: |
Tue, 28 Sep 2021 16:54:21 +0000 |
Hi Protesilaos,
Protesilaos Stavrou writes:
> Is there a way to get composite styles? Such as bold and italic or
> verbatim and underline, etc.?
A somewhat dirty solution (without patching the code) could be
evaluating highlight-regexp, for example as a local variable:
#+begin_src emacs-lisp
(defface my/org-it-bold
'((t :slant italic :bold t))
"")
(highlight-regexp
"\\([-[:space:]('\"{]\\|^\\)\\(\\([*/_+]\\)\\([*/_+]\\)\\([^[:space:]]\\|[^[:space:]].*?\\(?:
.*?\\)\\{0,15\\}[^[:space:]]\\)\\3\\)\\([-[:space:].,:!?;'\")}\\[]\\|$\\)"
'my/org-it-bold)
#+end_src
Best regards,
Juan Manuel