Re: Anyone doing any fancy customizations of source blocks?

2020-06-19 Thread General discussions about Org-mode.
Hi Bill, I'm glad you found the example useful. I've been thinking myself of also un-hiding the header arguments, which I do find useful to have visible. Best, --Diego On Fri, Jun 19, 2020 at 4:04 AM William Denton wrote: “On 3 June 2020, Diego Zamboni wrote: > I use the config John mentioned

Re: Anyone doing any fancy customizations of source blocks?

2020-06-19 Thread Norman Tovey-Walsh
Joost Kremers writes: > In Emacs 27, add an `:extend t` property to the face. Thank you! I somehow failed to connect that with my move to Emacs 27 a while back. Be seeing you, norm -- Norman Tovey-Walsh

Re: Anyone doing any fancy customizations of source blocks?

2020-06-19 Thread Joost Kremers
On Fri, Jun 19 2020, Norman Tovey-Walsh wrote: What’s the trick to get the background color to extend across the entire line? In Emacs 27, add an `:extend t` property to the face. In Emacs 26 and earlier, IIRC, you need to make sure that the newline at the end of the line is also

Re: Anyone doing any fancy customizations of source blocks?

2020-06-19 Thread Norman Tovey-Walsh
> On 3 June 2020, 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 This example reminded me of something that’s been

Re: Anyone doing any fancy customizations of source blocks?

2020-06-18 Thread William Denton
On 3 June 2020, 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 Thanks for this. I used it for a while, and it looks

Re: Anyone doing any fancy customizations of source blocks?

2020-06-08 Thread Rasmus
John Kitchin writes: > Here is one approach: > > https://pank.eu/blog/pretty-babel-src-blocks.html There’s some work to generalize this here: https://github.com/integral-dw/org-menu-mode I have not had a chance to try it myself yet. That being said, the above approach still lives in my

Re: Anyone doing any fancy customizations of source blocks?

2020-06-04 Thread Diego Zamboni
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

Re: Anyone doing any fancy customizations of source blocks?

2020-06-03 Thread briangpowell .
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}:

Re: Anyone doing any fancy customizations of source blocks?

2020-06-03 Thread Diego Zamboni
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: > >

Re: Anyone doing any fancy customizations of source blocks?

2020-06-02 Thread John Kitchin
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

Anyone doing any fancy customizations of source blocks?

2020-06-02 Thread William Denton
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