Thanks, Tim. This looks great. For those of you who don't want to go digging through the thread, here's the summary:
Step 1. Download nrepl-0.1.4-preview from Marmalade or MELPA (depends on clojure-mode 1.11). Step 2. Add this code to your .emacs file: ;; Patch ob-clojure to work with nrepl (declare-function nrepl-send-string-sync "ext:nrepl" (code &optional ns)) (defun org-babel-execute:clojure (body params) "Execute a block of Clojure code with Babel." (require 'nrepl) (with-temp-buffer (insert (org-babel-expand-body:clojure body params)) ((lambda (result) (let ((result-params (cdr (assoc :result-params params)))) (if (or (member "scalar" result-params) (member "verbatim" result-params)) result (condition-case nil (org-babel-script-escape result) (error result))))) (plist-get (nrepl-send-string-sync (buffer-substring-no-properties (point-min) (point-max)) (cdr (assoc :package params))) :value)))) Step 3. Get Literate! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en