Skip to content

Instantly share code, notes, and snippets.

@arohner
Created February 13, 2010 00:15
Show Gist options
  • Select an option

  • Save arohner/303136 to your computer and use it in GitHub Desktop.

Select an option

Save arohner/303136 to your computer and use it in GitHub Desktop.
(with-ns 'clojure.core
(defn require-short [ns]
(let [[whole base name] (re-find #"(.+)\.(.+)" (str ns))]
(require [(symbol whole) :as (symbol name)] :verbose))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment