I'm trying to setup my environment based on EMACS+CIDER for clojure development, btw I got stuck with functionality of hot-reloading I've seen in this video at 6:20-6:25 timing. http://www.parens-of-the-dead.com/e1.html
Actually, author is not using feature like RING/wrap-reload, but his code reloads in REPL after each buffer saving in emacs. I guess I have same libraries on local machine (cider, cider-nrepl, clj-refactor, clojure-mode), but my local installation is not working as shown, it requires calling (reset) function every time in REPL.
P.S. I can roughly get same behaviour by this code in EMACS, but I don't want to use hacks like that:
(defun my-clojure-reset ()
"Reload clojure once file were saved."
(when
(s-ends-with? "clj" (buffer-file-name))
(cider-interactive-eval "(do (ns user) (reset))")))
(add-hook 'after-save-hook 'my-clojure-reset)
Any suggestions how to implement code reloading on file saved event in EMACS+CIDER?