[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: src block face [8.3.1 (8.3.1-56-g17a225-elpaplus @ /Users/c
From: |
Tanis, Craig |
Subject: |
Re: [O] Bug: src block face [8.3.1 (8.3.1-56-g17a225-elpaplus @ /Users/ctanis/.emacs.d/elpa/org-plus-contrib-20150817/)] |
Date: |
Tue, 18 Aug 2015 14:55:53 +0000 |
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 <address@hidden> wrote:
>
> "Tanis, Craig" <address@hidden> 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
address@hidden