Since I use Emacs' org-mode for academic writing, in the beginning of my .org files, I always have a long list of latex export settings of the form:
#+LATEX_HEADER: lorem ipsum dolor
#+LATEX_HEADER: lorem ipsum dolor
...
Or code snippets scattered around the document of the form:
#+BEGIN_SRC emacs-lips
lorem ipsum dolor
#+END_SRC
All these lines (both the lorem ipsum part and the #+BLAHBLAH part), I would like to have displayed in a mono spaced font, say Liberation Mono, that respects the custom colors and custom sizes I have defined elsewhere.
I searched, and I came to the conclusion that, as suggested here, using font-lock would be the way to go. Unfortunately, by looking at examples, I couldn't figure out on my own how to set it up properly. I tried the following, but either the regexp is wrong or the syntax is wrong:
(add-hook 'org-mode-hook
(lambda ()
(font-lock-add-keywords nil
'(("^\#\+.*$" 1
font-lock-comment-face t)))))
So, the question is: has anybody been able to work this out? Or, would anyone suggest a different way?