From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WNytBKwD2F6ICwAA0tVLHw (envelope-from ) for ; Wed, 03 Jun 2020 20:10:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uMOIAKwD2F5xBgAAB5/wlQ (envelope-from ) for ; Wed, 03 Jun 2020 20:10:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B97D9404CF for ; Wed, 3 Jun 2020 20:10:19 +0000 (UTC) Received: from localhost ([::1]:33824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgZiL-0006Xz-Jp for larch@yhetil.org; Wed, 03 Jun 2020 16:10:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgZho-0006Xt-M6 for emacs-orgmode@gnu.org; Wed, 03 Jun 2020 16:09:44 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:43768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgZhn-0006Di-BX for emacs-orgmode@gnu.org; Wed, 03 Jun 2020 16:09:44 -0400 Received: by mail-wr1-x429.google.com with SMTP id l10so3691705wrr.10 for ; Wed, 03 Jun 2020 13:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VMkZ3TNll7HUSNmwkhSyG0KhnTiK3QLHZzqaol5w2qI=; b=u1Ke+YEpKntD0T1Z8E6SKoJ7D2JZVezoumEvqQMbhBHibfIlCDTq6LXOsHujxQ7rRv u16pS/L5i2r1u18L7c1+1KQ89eCNsQWIZiPAExLpSATAklY6HAqsEq7mbjS1+Xyv+QvS osVsWsifhp6RQW/YAbATS7FfMryCSIdwNkE7N9XfJGDU3VQRHCadqWat0w4SaGBUQA9g YS6MdWoFVTvA/9bz8N3mMkeDpDBDe9V8qYDSiwpBnTyo8fQbYFRa9Ilx8mKdTBfXdrBu UCL590dpKnW2WkwhBzlzOBlbmQFflAdpr+HMLn6s9sDAmYH4PZsEX15pkXcU19K7xPMh XlHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VMkZ3TNll7HUSNmwkhSyG0KhnTiK3QLHZzqaol5w2qI=; b=MfdklHYSAv7iUvXAJ0YdfPc2WVkVt7CSwn0TKDaIBtFLp7Cx9TbWgZSAdlVUwLom3K ignmyWWb5EqlV7FRBCnKlizrwfwyc5jMowSjSooBRcLtp3nh+bPAyTqPVqBtSAX5uUGn tYwn+Pb9jxVlqgwXEdKCeHuwhRWGCPZSbBDeRNBmdAVG+6UpxPNCjE1q12o14ha0BD5s OD4NmrGJUeoC8KKcVydsvIh8phhmDNnSAvqcrcJzhkb7KXm5G/yi24ge6UN8PbLHJyTU QOVvV9t8na6B+p/XjtnOvLOhNUddomLNHN3PP6xq45+E7svWAcu+aNfJxnB0RlT3T5h7 PV9w== X-Gm-Message-State: AOAM532Y41A68tcOkeukUS/RfaifxU49UvTwnazeWKBw/VcEUmkKI0AP GzeXlgvP16zBzumoAqeeEBqo/TQ8HH4K57mgdV0= X-Google-Smtp-Source: ABdhPJy1hSYQxuhkXqUxb5Oy3Y/GWk6c0DBQYbYWVZ+2oqrWld3fmvBimKjN+TeiHuWLeU6xzqYz9JGGX9ziTA8PFSw= X-Received: by 2002:adf:9b9e:: with SMTP id d30mr1007417wrc.345.1591214980812; Wed, 03 Jun 2020 13:09:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "briangpowell ." Date: Wed, 3 Jun 2020 16:09:29 -0400 Message-ID: Subject: Re: Anyone doing any fancy customizations of source blocks? To: Diego Zamboni Content-Type: multipart/alternative; boundary="000000000000b1539a05a7339b9a" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=briangpowellms@gmail.com; helo=mail-wr1-x429.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: William Denton , org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=u1Ke+YEp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.29 X-TUID: WElV5LLKwRDe --000000000000b1539a05a7339b9a Content-Type: text/plain; charset="UTF-8" If you haven't already, you probably know all about it; but, for any newcomers on the subject of Literate Programming & source code blocks, etc. Highly recommend Knuth's CWEB book & of course NOWEB software {which is CWEB generalized for ALL programming languages}: https://www-cs-faculty.stanford.edu/~knuth/cweb.html Thanks Diego, its a very interesting config example On Wed, Jun 3, 2020 at 2:24 PM Diego Zamboni wrote: > I use the config John mentioned and I like it - though I use different > symbols. Here's my config if you want an example: > > https://github.com/zzamboni/dot-emacs/blob/master/init.org#source-code-blocks > > --Diego > > On Tue, Jun 2, 2020 at 9:24 PM John Kitchin > wrote: > > > > Here is one approach: > > > > https://pank.eu/blog/pretty-babel-src-blocks.html > > > > I feel like I have seen some work that used ruby and python icons as > displays over #+begin_src, but I can't find it now. > > > > John > > > > ----------------------------------- > > 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 > > > > > > > > On Tue, Jun 2, 2020 at 2:54 PM William Denton wrote: > >> > >> Is anyone doing any fancy formatting of source blocks, such as putting > a line > >> in the left fringe, or a box around them, or having some interesting > background? > >> > >> I ask because I recently changed the theme I use to get the dark > Solarized look > >> I like,[1] and all of a sudden my #+begin_src lines were underlined and > >> #+end_src had a line above it. These come from org-block-begin-line and > >> org-block-end-line, and are shown here, but I'd never noticed them in > >> documentation or had them on my screen before: > >> > >> > https://orgmode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.html > >> > >> Aside from fontifying the source blocks I've never done anything > special about > >> them (except wonder how I ever did anything without them), but seeing > this made > >> me wonder if anyone here has really customized them so they look like > medieval > >> manuscripts or something from a futuristic video game. (If any of that > is > >> possible---but in Emacs, anything is possible ...) > >> > >> Bill > >> > >> [1] Now I'm using https://github.com/bbatsov/solarized-emacs, with > variable > >> pitch turned off and Org headline resizing turned off. > >> > >> -- > >> William Denton :: Toronto, Canada --- Listening to Art: > https://listeningtoart.org/ > >> https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ > >> Caveat lector. --- STAPLR: https://staplr.org/ > >> > > --000000000000b1539a05a7339b9a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you haven't already, you probably know all about it= ; but, for any newcomers on the subject of Literate Programming & sourc= e code blocks, etc.

Highly recommend Knuth's CWEB bo= ok & of course NOWEB software {which is CWEB generalized for ALL progra= mming languages}:


Thanks Diego, its=C2=A0a very inter= esting config example=C2=A0

On Wed, Jun 3, 2020 at 2:24 PM Diego Zambo= ni <diego@zzamboni.org> wro= te:
I use the co= nfig John mentioned and I like it - though I use different
symbols. Here's my config if you want an example:
https://github.com/zzam= boni/dot-emacs/blob/master/init.org#source-code-blocks

--Diego

On Tue, Jun 2, 2020 at 9:24 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote: >
> Here is one approach:
>
> https://pank.eu/blog/pretty-babel-src-blocks.h= tml
>
> I feel like I have seen some work that used ruby and python icons as d= isplays over #+begin_src, but I can't find it now.
>
> John
>
> -----------------------------------
> 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
>
>
>
> On Tue, Jun 2, 2020 at 2:54 PM William Denton <wtd@pobox.com> wrote:
>>
>> Is anyone doing any fancy formatting of source blocks, such as put= ting a line
>> in the left fringe, or a box around them, or having some interesti= ng background?
>>
>> I ask because I recently changed the theme I use to get the dark S= olarized look
>> I like,[1] and all of a sudden my #+begin_src lines were underline= d and
>> #+end_src had a line above it.=C2=A0 These come from org-block-beg= in-line and
>> org-block-end-line, and are shown here, but I'd never noticed = them in
>> documentation or had them on my screen before:
>>
>> https://org= mode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.html >>
>> Aside from fontifying the source blocks I've never done anythi= ng special about
>> them (except wonder how I ever did anything without them), but see= ing this made
>> me wonder if anyone here has really customized them so they look l= ike medieval
>> manuscripts or something from a futuristic video game.=C2=A0 (If a= ny of that is
>> possible---but in Emacs, anything is possible ...)
>>
>> Bill
>>
>> [1] Now I'm using https://github.com/bbatsov/= solarized-emacs, with variable
>> pitch turned off and Org headline resizing turned off.
>>
>> --
>> William Denton :: Toronto, Canada=C2=A0 =C2=A0---=C2=A0 =C2=A0List= ening to Art: https://listeningtoart.org/
>> https://www.miskatonic.org/=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0---=C2=A0 =C2=A0GHG.EARTH: https://ghg.earth/
>> Caveat lector.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ---=C2=A0 =C2=A0STAPLR: https://staplr.org/
>>

--000000000000b1539a05a7339b9a--