emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Nested macros and fontification
@ 2021-03-15 17:10 Juan Manuel Macías
  0 siblings, 0 replies; only message in thread
From: Juan Manuel Macías @ 2021-03-15 17:10 UTC (permalink / raw)
  To: orgmode


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:


Best regards,

Juan Manuel 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-15 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 17:10 Nested macros and fontification Juan Manuel Macías

Code repositories for project(s) associated with this public inbox


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).