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 iFNZIOmU2F6QTAAA0tVLHw (envelope-from ) for ; Thu, 04 Jun 2020 06:30:01 +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 wChGHOmU2F7bXAAAB5/wlQ (envelope-from ) for ; Thu, 04 Jun 2020 06:30:01 +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 7EBA89404CB for ; Thu, 4 Jun 2020 06:30:00 +0000 (UTC) Received: from localhost ([::1]:35118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgjO1-0004zo-RK for larch@yhetil.org; Thu, 04 Jun 2020 02:29:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgjNR-0004xn-VD for emacs-orgmode@gnu.org; Thu, 04 Jun 2020 02:29:21 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:34573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgjNQ-0006T2-CK for emacs-orgmode@gnu.org; Thu, 04 Jun 2020 02:29:21 -0400 Received: by mail-ed1-x535.google.com with SMTP id w7so3737819edt.1 for ; Wed, 03 Jun 2020 23:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DynV9WvkykF1/DyLYvRY4BbRGAtIlqQQJAa6pNPCCbM=; b=l4hlM5Wga+7vC58MXrhrecLB31RRSjcIN2BQWcx7zfrqJbsDW6TogoAVTcmbqXkatd SDPxSpHYzPTl+WOc7itDwIU/KD3hpRU4i1soN68B52T1l7kYEtYa0dQzE+6WAsi3PLno 2RwjFo7btk+DUsoYPeoVEt+v6Cb1QycTLRzJiszJm9DUjqI2t1lIgfe8T7wf/SMMUhmD cBUVV/Xz58baHUO98uhwf7VkkPOHkT1cGSgsjUrZR5IDjBRmHHCAwYqZRq7o1t3+JCO1 2ye4lhoVb4Qhn2w38nxl3biG3xwy8tnfEcIUv3d/cC3D9A9eKOV8RRckVUJxdMhwC15e VH6Q== 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=DynV9WvkykF1/DyLYvRY4BbRGAtIlqQQJAa6pNPCCbM=; b=OdC84frrTilXP5ExY0M69RKN56Z84dOSE0vWKX4MFHvYfXLMcgieHbQYUA1CYdE+bQ PEvgN+kLR4D2aUmZXE6vC7I8wLqm4FOamglTr4eNlpvtC5Q3Xs0dd5zNZrxH1yS0ckmZ LH9d5sEYQ5xho7VE2m90mpYZZRbchxH4v3mwtSJKv5SNR8smbTdcCfllULGbPnIScjBF opTncepKYOuojyFqlhvxp/W4ZW2vKwEUcqGDGTnUvg4atjAsK/anPxPSSetX8mRaeaaO kzYrWlO0g4AMOAvV4IveY9CUoQqw2ZmNN4O1tQz1i2CBkMiHaGoItq43VUP++1QKiUu5 xzHA== X-Gm-Message-State: AOAM530Ttz/kQqo9JolWJoGamYU9UHKcxoPNSYFFHxihj7iewinfvXmy m0qOkxWOF6qIShIOw6yDgaXWeJLuC1nyQ6bbn9jRdw== X-Google-Smtp-Source: ABdhPJwOh1jFM/7LKjeUVY67Usxx685s/ZnvZGmfIxQHiQLwBXuaHRVQPiB8VRh3PNXgVp/y/7EsA7lDK9HCCNgrWC0= X-Received: by 2002:a05:6402:312a:: with SMTP id dd10mr2976562edb.320.1591252158789; Wed, 03 Jun 2020 23:29:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Diego Zamboni Date: Thu, 4 Jun 2020 08:29:09 +0200 Message-ID: Subject: Re: Anyone doing any fancy customizations of source blocks? To: "briangpowell ." Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2a00:1450:4864:20::535; envelope-from=diego@zzamboni.org; helo=mail-ed1-x535.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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=l4hlM5Wg; dmarc=none; 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.21 X-TUID: +5YqbX6z0HMk 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 . 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 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/ >> >> >>