New answers tagged

0

Another way is to use tkinter and to input the value in an external window: #+name: tkinput #+begin_src python :results output :exports none from tkinter.simpledialog import askstring from tkinter import Tk def input(message): root = Tk() root.withdraw() entered = askstring("", message) root.destroy() return entered #+end_src #...


0

Here is a solution if you use :comments link in your code blocks header and if tangle multiple blocks into a single file. With cursor at code block it will jump to a point where this block was tangled using these comment links. ;; this is optional but might look better than defaults (setq org-babel-tangle-comment-format-beg "-------->> [[%link][%...


1

When Emacs is waiting for an orgmode cose block to run, you can regain control with 'C-g'. I'm not sure why this works, but so far I haven't had the cose block stop running when I do this.


0

I am interested in this functionality and believe we are looking for the same thing. I didn't find a ready-made one so here's a quick-and-dirty take. It only supports sh now, and requires cl and magnar's s (defun markdown-eval-current-code-block () (interactive) (save-excursion (forward-paragraph) (let ((start (progn (backward-...


1

what is the difference between these files? init.el is a standard Emacs init filename, and config.el is something you've invented. what is the minimal content of 'init.el'? Nothing. Empty. Emacs doesn't require that the file exist at all.


1

You have to customize the variable org-babel-lilypond-commands. You can see the variable's doc string with C-h v org-babel-lilypond-commands and you can customize it by clicking on the Customize link in that doc string. You can then set up how to start Lilypond, the PDF viewer and the MIDI player as appropriate for your system. Then hit Apply to set these ...


2

Two things: the language name here is sh, not shell the colon is missing after the language name The following works: * org-babel :PROPERTIES: :header-args:sh: :session babel :END: #+begin_src sh pwd #+end_src #+RESULTS: : /Users/olivier/git/mybrain #+begin_src sh cd .. pwd #+end_src #+RESULTS: : /Users/olivier/git #+begin_src sh pwd #+end_src #+...


Top 50 recent answers are included