Questions tagged [literate-programming]
The literate-programming tag has no summary.
69 questions
0 votes
1 answer
60 views
Sharing definitions between org-babel source blocks in literate programs
I'm currently working through some programming books, which often contain code snippets that are not complete, and not necessarily in the right order as they would appear in an actual source file. To ...
0 votes
0 answers
96 views
How to pretty print my emacs configuration with literate programming?
I have done an emacs config with literate programming and I have been searching for while now. I need a simple tool with which I can just pretty print my code in my org file.
2 votes
1 answer
229 views
Configuring Key-bindings from Org-Table
I use init.org file to configure my emacs, and then tangle it into init.el. Now, I would like to configure my keybindings from org-table (for more readable and printable). Basically, I'd like to only ...
2 votes
1 answer
217 views
Splitting use-package declarations in literate config
Trying to clean up my configuration and make it more readable, but also reduce load time from current time of about 13 seconds down to < 10. Suppose I have a large use-package macro for a package ...
0 votes
0 answers
45 views
Why does a named org-mode source code block get used when it was only declared and not used in another source block?
it's required to have #lang racket to use the substring procedure. So I defined it like this: #+NAME: directive #+begin_src racket #lang racket #+end_src #+begin_src racket :var directive=directive (...
2 votes
1 answer
200 views
How to divide too long header-arguments of src-block into multiple lines?
I'm trying to process tens of tables (from multiple org-files) in python src-block at once. Suppose that the following file: /tmp/file1.org contains some tables: * This org contains the tables #+name: ...
2 votes
2 answers
650 views
Evaluate Single Python Code Blocks in a Quarto File like in R Studio or Jupyter Lab
Quarto is a literate programming framework. It allows you to combine in a single file code (in various programming languages) and text (in markdown).* When a Quarto document is rendered, the output ...
1 vote
1 answer
212 views
Tangle babel code to specific location in source file?
Let's say I'm creating many babel code blocks in a growing org-mode buffer and I'm tangling them all to a single file. However, I want certain blocks to appear above others. For example, #+begin_src ...