Aha! In my configuration, I was fontifying org-block to use a different background color and font family. I don't suppose there's some way to get the best of both worlds: visibly distinct org-blocks with mode-specific keyword fontification?
Thanks, Craig > On Aug 18, 2015, at 10:36 AM, Kyle Meyer <k...@kyleam.com> wrote: > > "Tanis, Craig" <craig-ta...@utc.edu> writes: > >> SRC blocks don't show correct face when a language is specified. >> >> #+begin_src >> correctly shows in 'org-block face >> #+end_src >> >> #+begin_src language >> incorrectly shows in 'default face >> #+end_src > > I suspect that in your second block you're using text the would have the > default face in a buffer for that language. > > Depending on the value of org-src-fontify-natively, Org will try to > highlight the block according to the language. > > So > > #+begin_src > (message "yes") > #+end_src > > will use the org-block face, but > > #+begin_src elisp > (message "yes") > #+end_src > > will highlight according to emacs-lisp-mode. > > If org-src-fontify-natively is nil, the org-block face will be used for > the second block as well. > > -- > Kyle ---- Craig Tanis, Ph.D. UTC Computer Science craig-ta...@utc.edu