I wasn't sure where to post this question, but I count on the Emax community when it comes to font-locking and fontification.

We all know that AUCTeX is the way to go when writing a document in LaTeX, part of it due to the fontification this mode provides for the default LaTeX macros. But consider this MWE written with ConTeXt:


\setupbackgrounds[header][text][frame=off, bottomframe=on]

\setupheadertexts[\headerframed{C \\ D}]
\setupheadertexts[\headerframed{A \\ B}][\headerframed{E \\ F}]
\input knuth

In ConTeXt the \starttext and \stoptext are the equivalents of \begin{document} and \end{document} commands. Yet, Emacs doesn't show any fontification for many of the commands in ConTeXt. I am using moe-theme.

enter image description here

How to enable that? is there any known package to do that for you? Do I need to setup that manually command by command? If yes, how?

  • AUCTeX doesn't have great ConTeXt support because none of the active developers use it. Help on improving it with high-quality code is much welcome! – giordano Jun 10 '16 at 12:55
  • sorry to hear that, but until one of the developers start using it, isn't there a way to font lock custom commands under AUCTeX so that one can add those of ConTeXt? If yes, any documentation in that direction? – doctorate Jun 10 '16 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.