From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wBT9BV2n1l6RVAAA0tVLHw (envelope-from ) for ; Tue, 02 Jun 2020 19:24:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iHu5AV2n1l7nGwAAbx9fmQ (envelope-from ) for ; Tue, 02 Jun 2020 19:24:13 +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 111B094053B for ; Tue, 2 Jun 2020 19:24:12 +0000 (UTC) Received: from localhost ([::1]:47646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgCWA-0007La-WF for larch@yhetil.org; Tue, 02 Jun 2020 15:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgCVm-0007K3-Nh for emacs-orgmode@gnu.org; Tue, 02 Jun 2020 15:23:46 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:36274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgCVk-00047i-JD for emacs-orgmode@gnu.org; Tue, 02 Jun 2020 15:23:46 -0400 Received: by mail-wm1-x32c.google.com with SMTP id d128so4303008wmc.1 for ; Tue, 02 Jun 2020 12:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6uXNK17FtNCp+sO3dSD3F0nuPrtSpcusMCZdYro4kzM=; b=LbGddhdAnA9vZYJbwVnUpW12RvIQVsQBfmZCYk1C3dOMPx/BNDcmWEXAvIdVkWsHUH kL5Rbp6tAhtFq1IdgecIf1dIXtiiTR63ezlPJbk7nDraALkMoA11TIhBpzm6lQ7bg1ey /5v725RSSBBVSIgYTfITCwgype7iFT/UUg42RlgDdZgyqgn2MlyxvqsvqIn4ik+Oy6BL FZKpTzxPaO2mJriuGrMplfLZMx5pwGIgRQZYeLXhdb34y2/YiGh5A3iHPjHUBLqpVvo8 Lq4J0I1ZABIzLpctlbfGQH+u2Pr17KL5m4uZiTHC3D2t4JJyIhWT+7nI+NeZfv9V6Ar7 TT2g== 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=6uXNK17FtNCp+sO3dSD3F0nuPrtSpcusMCZdYro4kzM=; b=EnAihlgmYl/GjQ2MSYipGTYoWEpA0UfuQISF+1/AzWWt9eSsIuWV8ra57oShWYrZnL PnqRLjTJb2DI4BsnbnijEP6lTyCv4xO6zIGhTKmTajE0OTOKohe9E7wgr5hQ2AODlR7S aL6YwchYMGDyfcK+nDZv+kCz8rVn6epxskQJxWT13he/mhp3Iyk10JZl9yUBO6gOuL+r H1B61LBkOmEP/2a9SX2uyiqs4XzFRtv40Uwsg8M099hyDMz/m9Qe8IveUdtn32hhTHwy rY9EbLs8g4JXCdAdvD2zzpqupWBFF05wvIeOWsfoXuS17j0AyYj/DPJ7S9Ed/pYLiFtY 3B1g== X-Gm-Message-State: AOAM531+yGDwmqcZcm1HelYJCbppplJfdbeH0vP/vfKeWrya0RgWMdOH HdCw1dBFX42dZh1AhGsemVtCqM7i+RaVsHLs9a0= X-Google-Smtp-Source: ABdhPJyvoaOzS4k0Mwcd02nDN6MCYa07xEa8sCGqfl2OOJ35oEqJnwC2NvM4iiZfTgzuf71LW3AMXXbRDsTeSh3dAy0= X-Received: by 2002:a7b:c8d6:: with SMTP id f22mr5226441wml.108.1591125822229; Tue, 02 Jun 2020 12:23:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Tue, 2 Jun 2020 15:23:31 -0400 Message-ID: Subject: Re: Anyone doing any fancy customizations of source blocks? To: William Denton Content-Type: multipart/alternative; boundary="0000000000006d4f1d05a71ed959" Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32c.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: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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: 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=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=LbGddhdA; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=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.89 X-TUID: 0XdA0xNaybnv --0000000000006d4f1d05a71ed959 Content-Type: text/plain; charset="UTF-8" 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/ > > --0000000000006d4f1d05a71ed959 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is one approach:


I feel like I have seen so= me work that used ruby and python icons as displays over #+begin_src, but I= can't find it now.

John

-----------------------------------
= Professor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemica= l Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-= 268-7803


On Tue, Jun 2, 2020 at 2:54 P= M William Denton <wtd@pobox.com>= wrote:
Is anyon= e 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 backgr= ound?

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.=C2=A0 These come from org-block-begin-line a= nd
org-block-end-line, and are shown here, but I'd never noticed them in <= br> 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 specia= l 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 medie= val
manuscripts or something from a futuristic video game.=C2=A0 (If any of tha= t 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=A0Listening 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/

--0000000000006d4f1d05a71ed959--