reddit / emacs

[Org] Execute Lisp code blocks in "build pipeline"

525G7bKV · 2022-11-19 17:22
I run my own website with emacs and org-mode. It uses org-publish-project-alist. I did setup a build pipeline to automatically generate HTML files and execute python code blocks in the corresponding org files. By using python it is a no-brainer to execute the code blocks. I tried the same with lisp code blocks but never had success. Emacs wants a running slime/lisp session, but when I start sbcl in the pipeline, the pipeline stoped, and emacs cant connect. Any ideas what I can do?
ieure · 2022-11-19 18:31
What I do is put the stuff with code blocks into an `.org_source` file, export that to a `.org` file, and check both into my repo. The `.org` file has the source and result blocks, and the builder doesn't need a bunch of environments set up for a bunch of different languages.