Created
May 17, 2012 12:17
-
-
Save yuanmai/2718536 to your computer and use it in GitHub Desktop.
reload all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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