From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: colored code background in org 8.3 Date: Sun, 05 Jun 2016 08:46:58 -0400 Message-ID: References: <8760tpx6on.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9XSG-0007yI-Ud for emacs-orgmode@gnu.org; Sun, 05 Jun 2016 08:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9XSD-0005tO-1J for emacs-orgmode@gnu.org; Sun, 05 Jun 2016 08:47:00 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:36277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9XSC-0005tK-TB for emacs-orgmode@gnu.org; Sun, 05 Jun 2016 08:46:56 -0400 Received: by mail-qk0-x236.google.com with SMTP id i187so67445825qkd.3 for ; Sun, 05 Jun 2016 05:46:56 -0700 (PDT) In-reply-to: <8760tpx6on.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org Thanks, this worked perfectly! 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. > > (require 'color) > (set-face-attribute 'org-block nil :inherit 'fixed-pitch > :background (color-darken-name > (face-attribute 'default :background) 3)) > > You might also set :inherit of org-block-{begin,end}-line. > > Rasmus > > PS: My apology if I sent this twice now. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu