This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-30
Channels
- # announcements (1)
- # asami (21)
- # babashka (10)
- # beginners (123)
- # cider (55)
- # cljfx (9)
- # clojure (21)
- # clojure-europe (25)
- # clojure-nl (4)
- # clojure-uk (6)
- # clojured (1)
- # clojurescript (29)
- # cursive (9)
- # datomic (8)
- # emacs (13)
- # events (1)
- # fulcro (21)
- # graalvm (10)
- # graalvm-mobile (13)
- # jobs (1)
- # luminus (4)
- # malli (7)
- # nrepl (9)
- # off-topic (24)
- # pathom (2)
- # podcasts (1)
- # reagent (5)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (33)
- # tools-deps (60)
- # vim (8)
- # xtdb (1)
babashka + org-mode literate programming: https://github.com/babashka/babashka/discussions/907
👏 5
Not sure if I'm solving a different problem here, but this is my config for literate programming clojure in .org
files:
#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(shell . t)
(clojure . t)))
#+END_SRC
Don't ask before evaluating code blocks.
#+BEGIN_SRC emacs-lisp
(setq org-confirm-babel-evaluate nil)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(message "%s" "Start loading ob-clojure")
(use-package ob-clojure
:init
(setq org-babel-clojure-backend 'cider))
#+END_SRC
First start a bb --nrepl-server
on the cmdline, then connect with cider-connect and now you can evaluate the #+BEGIN_SRC clojure
clojure blocks in your .org file. The nrepl-server will retain state over different code blocks.👍 2
That's also possible. Then CIDER will just abstract away the Clojure implementation for you I guess.