|
| From: | Carlos Pita |
| Subject: | Re: [O] Bug: Add option to fontify latex blocks [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)] |
| Date: | Wed, 28 Nov 2018 14:28:37 -0300 |
> (lambda (start end &rest args)
> (org-src-font-lock-fontify-block "latex" start end))))
Or a safer version:
(lambda (start end prop face)
(when (eq face 'org-latex-and-related)
(org-src-font-lock-fontify-block "latex" start end)))))
Also note that the advice doesn't avoid the double setting of
(font-lock-multiline t). This is harmless but it's unnecessary
nevertheless. It's just intended as a workaround and to show that it's
pretty simple to extend native fontification to inline snippets.
| [Prev in Thread] | Current Thread | [Next in Thread] |