Advertisement
Guest User

Untitled

a guest
Oct 10th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def completions
  2.     (reduce concat (map (fn [p] (keys (ns-publics (find-ns p))))
  3.                         '(clojure.core clojure.set clojure.xml clojure.zip))))
  4.                          
  5. (with-open [f (java.io.BufferedWriter. (java.io.FileWriter. (str (System/getenv "HOME") "/.clj_completions")))]
  6.     (.write f (apply str (interleave completions (repeat "\n")))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement