From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: colored code background in org 8.3
Date: Sun, 05 Jun 2016 08:46:58 -0400 [thread overview]
Message-ID: <m2wpm3ref1.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <8760tpx6on.fsf@gmx.us>
Thanks, this worked perfectly!
Rasmus writes:
> John Kitchin <jkitchin@andrew.cmu.edu> 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
next prev parent reply other threads:[~2016-06-05 12:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-01 11:18 colored code background in org 8.3 John Kitchin
2016-06-03 22:12 ` Rasmus
2016-06-05 12:46 ` John Kitchin [this message]
2016-06-07 11:33 ` Sebastien Vauban
2016-06-07 15:07 ` Rasmus
2016-06-07 16:02 ` Samuel W. Flint
2016-06-09 11:43 ` Nicolas Goaziou
2016-06-09 13:45 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wpm3ref1.fsf@Johns-MacBook-Air.local \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).