[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nested macros and fontification
From: |
Juan Manuel Macías |
Subject: |
Nested macros and fontification |
Date: |
Mon, 15 Mar 2021 18:10:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
I make heavy use of replacement macros, and often my Org documents are
full of nested macros (in the 'LaTeX way') throughout the text. The
problem is that `org-fontify-macros' breaks the macro fontification when
it is a nested construction.
I've found a simple high level solution that consists in ensuring that the
macros have a look identical to normal text (in my theme):
(set-face-attribute org-macro nil :bold nil :foreground black)
And then I only highlight the macro boundaries with `highlight-regexp'. I
think that this gives me a more legible and consistent text, without
that 'rainbow effect' that many themes apply to macros. I share a couple
of samples, in case this little solution is helpful to someone who also
uses a lot of (nested) replacement macros:
https://imgur.com/a/fSPHH0w
Best regards,
Juan Manuel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Nested macros and fontification,
Juan Manuel Macías <=