[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anyone doing any fancy customizations of source blocks?
From: |
Diego Zamboni |
Subject: |
Re: Anyone doing any fancy customizations of source blocks? |
Date: |
Thu, 4 Jun 2020 08:29:09 +0200 |
Hi Brian,
Thanks for the kind words! I wrote a booklet about my setup including
other "literate config" examples, if you are interested:
https://leanpub.com/lit-config/read
I have been fascinated by the idea of literate programming since I got
a copy of The Stanford GraphBase while I was in college. I never used
CWEB directly, but I have tried noweb and other literate programming
tools over the years. However, Emacs + Org-mode + Babel is the first
toolset that I have actually been able to stick with on sustained use
:)
Best,
--Diego
On Wed, Jun 3, 2020 at 10:09 PM briangpowell . <briangpowellms@gmail.com> wrote:
>
> 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 <diego@zzamboni.org> 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 <jkitchin@andrew.cmu.edu> 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 <wtd@pobox.com> 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/
>> >>
>>
- Anyone doing any fancy customizations of source blocks?, William Denton, 2020/06/02
- Re: Anyone doing any fancy customizations of source blocks?, John Kitchin, 2020/06/02
- Re: Anyone doing any fancy customizations of source blocks?, Diego Zamboni, 2020/06/03
- Re: Anyone doing any fancy customizations of source blocks?, William Denton, 2020/06/19
- Re: Anyone doing any fancy customizations of source blocks?, Norman Tovey-Walsh, 2020/06/19
- Re: Anyone doing any fancy customizations of source blocks?, Joost Kremers, 2020/06/19
- Re: Anyone doing any fancy customizations of source blocks?, Norman Tovey-Walsh, 2020/06/19
- Re: Anyone doing any fancy customizations of source blocks?, Diego Zamboni, 2020/06/20
Re: Anyone doing any fancy customizations of source blocks?, Rasmus, 2020/06/08