emacs - Org-Babel Clojure Cider NRepl broken? -
i followed instructions here , wrote following org-mode file:
#+begin_src emacs-lisp (princ (concat (format "emacs version:\n%s\n" (emacs-version)) (format "\norg version: %s\n" (org-version)))) #+end_src #+results: : emacs version: : gnu emacs 25.1.1 (x86_64-apple-darwin13.4.0, ns appkit-1265.21 version 10.9.5 (build 13f1911)) : of 2016-09-17 : : org version: 9.0.5 #+begin_src clojure :results value (* 6 7) #+end_src #+results: * comment org babel settings local variables: org-confirm-babel-evaluate: nil end:
as can see, evaluation of emacs-lisp block works , produces expected output. incidentally, reports versions of things i'm using. however, clojure source block, when evaluated, leaves
code block returned no value.
i tried many different clojure expressions in code block, such println
s , more. nothing shows in nrepl window, , results in org mode same: message above in minibuffer.
in emacs minibuffer. here specific steps took:
$ lein new clojure-example
$ cd clojure-example
$ emacs clojure.example.org
- keyboarded in file above
- run emacs command
cider-jack-in
that produces repl window following version info:
;; connected nrepl server - nrepl://localhost:52695 ;; cider 0.15.0snapshot (package: 20170403.402), nrepl 0.2.12 ;; clojure 1.8.0, java 1.8.0_121
etc.
- put emacs cursor inside each block , type
c-c c-c
, boundorg-babel-execute-src-block
prior that, inserted following code in emacs initialization file:
(require 'org) (require 'ob-clojure) (org-babel-do-load-languages 'org-babel-load-languages '( (clojure . t) (emacs-lisp . t) )) (setq org-babel-clojure-backend 'cider) (require 'cider)
according cited instructions.
i'd grateful help.
yes, in current stable release (9.0.5), org-mode clojure backend broken , not work. submitted patch has been applied , expect in next release.
Comments
Post a Comment