4 ms·
I was experimenting with integrated tools.namespace reloading in elisp as well, and I found a slightly nicer way to send commands to nrepl: (defun nrepl-rese
by moonboots 13y ago
I was experimenting with integrated tools.namespace reloading in elisp as well, and I found a slightly nicer way to send commands to nrepl:
(defun nrepl-reset ()
(interactive)
(nrepl-interactive-eval "(user/reset)"))
The original elisp function:
(defun nrepl-reset ()
(interactive)
(set-buffer "*nrepl*")
(goto-char (point-max))
(insert "(user/reset)")
(nrepl-return))
- jmw74 13y agoNote the former technique will display the output in the minibuffer, the latter will display it in the repl.