3

That is one of the main pillars of babel. Give the C source block a name if you want to use in the variable assignments of another source block. You input the result of the C source block to another source block by the :var header argument. The python source blocks are described at https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html. ...


2

When I evaluate the inline src block: src_sh[:results value :exports code]{git --version} I get the following in my org mode buffer: src_sh[:results value :exports code]{git --version} {{{results(=git version 2.24.1=)}}} If you get the same thing, then the only thing you have to do is define a macro that will do what you want: #+MACRO: results returning ...


2

This issue is related to recent changes in org-mode (i.e. org 9.3). In the latest change log they mentioned that: :file header argument no longer assume "file" :results The "file" :results value is now mandatory for a code block returning a link to a file. The :file or :file-ext header arguments no longer imply a "file" result is expected. So, one ...


1

You can easily run all code blocks via C-c C-v C-b, or all blocks in a subtree. I don't think above this point is implemented. It would be fairly easy write a custom function that takes all text below the point, hides it, executes all code blocks, and then restores the text. I would do that rather than taking all text above the point and executing it in a ...


1

Use elisp in the :dir header to fetch the value the :HEADER-ARGS:bash from the PROPERTIES drawer, remove original :dir string and return new value with a subdirectory appended. For example, to append the todolist1, subdirectory, set the header below on the bash code block. :dir (format "%s/todolist1" (replace-regexp-in-string ":dir +" "" (org-entry-get ...


1

C-c C-c evaluates the code which adds the function to the hook, but the hook is not run: you need to close the file and reopen it in order for the hook to run. Or you can add this to the code block: (run-hooks 'org-mode-hook) That will run the hook, which will do the local-set-key to set the mouse click to your function.


Only top voted, non community-wiki answers of a minimum length are eligible