>
> As a work in progress, here is the code I came up with, it hard codes the
> function name:
>
(defun cider-eval-cljs-defun-at-point (&optional prefix)
"Evaluate the current toplevel form, and print result in the minibuffer.
With a PREFIX argument, print the result in the current buffer."
(interactive "P")
(let ((form (concat "(user/live-repl-client \""
(replace-regexp-in-string (regexp-quote "\"")
(regexp-quote "\\\"")
(replace-regexp-in-string (regexp-quote "\\")
(regexp-quote "\\\\")
(cider-defun-at-point)))
"\")")))
(if prefix
(cider-interactive-eval-print form)
(cider-interactive-eval form))))
(define-key cider-mode-map (kbd "C-c C-v") 'cider-eval-cljs-defun-at-point)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.