Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created May 17, 2012 12:17
Show Gist options
  • Save yuanmai/2718536 to your computer and use it in GitHub Desktop.
Save yuanmai/2718536 to your computer and use it in GitHub Desktop.
reload all
;; http://blog.jayfields.com/2012/05/agile-development-with-clojure.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+jayfields%2FmjKQ+%28Jay+Fields%27+Thoughts%29
(defonce ignored-namespaces (atom #{}))
(defn reload-all []
(doseq [n (remove (comp @ignored-namespaces ns-name) (all-ns))]
(require (ns-name n) :reload )))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment