fix(clojure,org): use cider for org-babel
More than a year ago a change was added to ob-clojure that prevented evaluating a Clojure code block without setting `org-babel-clojure-backend'. This change sets this to a default value of CIDER, since that is the main tool used in Doom. Without this change, manual configuration is required to use Clojure in org babel documents. Close #5233
This commit is contained in:
parent
eb3d645bde
commit
9dc0d10c09
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@
|
||||||
'(t (:eval cider-modeline-icon))
|
'(t (:eval cider-modeline-icon))
|
||||||
'append)))))
|
'append)))))
|
||||||
|
|
||||||
|
;; Ensure that CIDER is used for sessions in org buffers.
|
||||||
|
(when (featurep! :lang org)
|
||||||
|
(after! ob-clojure
|
||||||
|
(setq! org-babel-clojure-backend 'cider)))
|
||||||
|
|
||||||
;; The CIDER welcome message obscures error messages that the above code is
|
;; The CIDER welcome message obscures error messages that the above code is
|
||||||
;; supposed to be make visible.
|
;; supposed to be make visible.
|
||||||
(setq cider-repl-display-help-banner nil)
|
(setq cider-repl-display-help-banner nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue