From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: colored code background in org 8.3 Date: Tue, 07 Jun 2016 17:07:47 +0200 Message-ID: <87vb1l11h8.fsf@gmx.us> References: <8760tpx6on.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIbt-0000j5-SS for emacs-orgmode@gnu.org; Tue, 07 Jun 2016 11:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAIbo-0002OD-IO for emacs-orgmode@gnu.org; Tue, 07 Jun 2016 11:08:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:52911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIbo-0002N7-BN for emacs-orgmode@gnu.org; Tue, 07 Jun 2016 11:08:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bAIbi-0008IV-DN for emacs-orgmode@gnu.org; Tue, 07 Jun 2016 17:07:54 +0200 Received: from 46.166.137.223 ([46.166.137.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jun 2016 17:07:54 +0200 Received: from rasmus by 46.166.137.223 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jun 2016 17:07:54 +0200 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" To: emacs-orgmode@gnu.org Sebastien Vauban writes: > Hello all, > > Rasmus writes: >> John Kitchin writes: >> >>> I am finally getting around to switching over to org 8.3... One thing >>> I miss already is the colored background in the code blocks. I recall >>> that was removed. Has anyone looked into a way to put it back? >> >> I use the attached patch for some "interactive slides" with babel. > > Could it be put into the official code base, for all users to enjoy > colored backgrounds without having to patch their Org by hand? Sure, eventually. Let me know if you have tested the patch and it works for you. I don’t know much about faces, but it should work across all relevant versions of Emacs. Aside: Speaking of prettifying src blocks, with prettify-symbols-mode I managed to make src-blocks look like this when the cursor is somewhere else λ LANGUAGE ☰ and like this otherwise #+begin_src LANGUAGE :keyword₁ value₁ ⋯ :keywordₙ valueₙ Rasmus -- Vote for proprietary math!