Questions tagged [babel]

The tag has no usage guidance.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
140 views

Flycheck Emacs Lisp in Org-mode babel source blocks

I want to have Flycheck syntax checking when I am editing Emacs Lisp code in a literal Org-mode file using babel SRC blocks. (Using Org's editing buffers with C-c '). However the flycheck-emacs-lisp ...
3
votes
1answer
34 views

What is the `'inf-template` file in the ob-template.el file (template for creating new babel language)

Because the options provided by the mathematica.el file in org-contrib are quite limited, I am trying to create a new, extended, mathematica.el file. As explained on the org language development page, ...
2
votes
0answers
156 views

Aligning (ditaa) rectangles with variable string width in yasnippet

To quickly add simple diagrams to notes, I've created yasnippets for ditaa boxes. The text inside each box is a $x - and therefore has a length I do not know at snippet design time. As a consequence, ...
2
votes
0answers
412 views

Using a function as an org-babel header argument

Say I am using org-babel to tangle code blocks from an org document. I have several blocks with random code in them. My goal is to dynamically tangle (or not) individual blocks following a condition, ...
1
vote
0answers
18 views

org babel sql results output in raw form

Is the way to get same output as in terminal with ob-doc-sql. Executing the sql-query in org will process results into org-table ignoring other than table information. It doesn't fare well with ...
1
vote
1answer
74 views

Is there a way to run a shell command on a previously compiled C org source block?

If i have the following block: #+NAME: my-code #+BEGIN_SRC C #include <stdio.h> int main () { printf("Hello, World!"); return 0; } #+END_SRC How can I use the compiled output in another ...
1
vote
0answers
48 views

Org-mode :results file hook to launch file

My scenario python code creating a wav file last line of code returns the written file name org-mode src block with the option :results file The result block correctly links to the audio file, and I ...
0
votes
0answers
17 views

condition on “if the source code block is tangled”

is there a way to query if the current source code block is tangled and if so, to execute e.g. shell stuff depending on if it was or not? I know I can make tangling conditional, but can one also do ...
0
votes
0answers
17 views

how to check if a babel block finished the execution

I am searching for a piece of emacs-lisp code that checks if an emacs-babel block finished its execution. I am trying to write smth like (while (babel-block not finished its execution) (sleep-...
0
votes
0answers
10 views

Feeding narrowed org subtree contents to a babel block of code?

I have a usecase where I make structured notes under an org heading, and then would like to occasionally perform some little analytics to the contents. Currently I have to navigate to the heading, ...