From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tanis, Craig" Subject: Re: 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 Message-ID: References: <00029886-233A-47FA-BC69-C6012ED998E8@utc.edu> <87a8to1x5v.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRiJH-00023d-4M for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:56:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRiJA-0006vm-Nm for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:56:18 -0400 Received: from mail-bl2on0142.outbound.protection.outlook.com ([65.55.169.142]:1056 helo=na01-bl2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRiJA-0006vJ-HO for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:56:12 -0400 In-Reply-To: <87a8to1x5v.fsf@kyleam.com> Content-Language: en-US Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kyle Meyer Cc: "emacs-orgmode@gnu.org" Aha! In my configuration, I was fontifying org-block to use a different ba= ckground color and font family. I don't suppose there's some way to get th= e best of both worlds: visibly distinct org-blocks with mode-specific keywo= rd fontification? Thanks, Craig > On Aug 18, 2015, at 10:36 AM, Kyle Meyer wrote: >=20 > "Tanis, Craig" writes: >=20 >> SRC blocks don't show correct face when a language is specified. >>=20 >> #+begin_src >> correctly shows in 'org-block face >> #+end_src >>=20 >> #+begin_src language >> incorrectly shows in 'default face >> #+end_src >=20 > I suspect that in your second block you're using text the would have the > default face in a buffer for that language. >=20 > Depending on the value of org-src-fontify-natively, Org will try to > highlight the block according to the language. >=20 > So >=20 > #+begin_src > (message "yes") > #+end_src >=20 > will use the org-block face, but >=20 > #+begin_src elisp > (message "yes") > #+end_src >=20 > will highlight according to emacs-lisp-mode. >=20 > If org-src-fontify-natively is nil, the org-block face will be used for > the second block as well. >=20 > -- > Kyle ---- Craig Tanis, Ph.D. UTC Computer Science craig-tanis@utc.edu