18 lines
444 B
Org Mode
18 lines
444 B
Org Mode
#+TITLE: org-eval
|
|
|
|
Evaluate Lisp source blocks in an .org file via Emacs batch mode.
|
|
|
|
== Usage
|
|
|
|
#+begin_src shell
|
|
org-eval org/file.org # evaluate all blocks
|
|
org-eval org/file.org 3 # evaluate block at index 3 (0-based)
|
|
#+end_src
|
|
|
|
Useful for quick REPL evaluation without starting the daemon — Emacs
|
|
tangles and evaluates the block inline. Results are printed to stdout.
|
|
|
|
== Dependencies
|
|
|
|
Emacs with org-mode (org-babel).
|