emacs

ag 2024-11-20T18:09:35.811599Z

Does anyone remember the bug with org-babel-tangle for clojure blocks when it tangles the code prepending it with: (prn (binding [*out* (.StringWriter.)]. Anyone knows the quick workaround?

nitin 2024-12-07T09:50:44.420329Z

Try :results output, also how your workaround working, for me it says: org-babel-execute-src-block: No org-babel-execute function for clj!? https://clojurians.slack.com/archives/CLX41ASCS/p1721059174507279

ag 2024-12-10T03:32:07.148809Z

Oh, I wasn't having problem with execution of clojure blocks, only with tangling. I manage all my dotfiles, including ~/.clojure files in a single .org file. Then I run org-babel-tangle it creates a bunch of files. Makes my system config kinda-sorta "immutable". And allows me to create files differently for Mac and Linux.

nitin 2024-12-10T03:48:50.824019Z

The mentioned thread discusses about, using :result output to avoid clojure blocks prepended with: (prn (binding [*out* (java.io.StringWriter.)]

ag 2024-12-10T03:53:28.426029Z

Ha... interesting. it did work. Thanks! It's :results output though (plural)

ag 2024-11-20T19:18:30.801819Z

Lazy workaround (defalias 'clj-mode 'clojure-mode) #+begin_src clj

👍 1