Skip to content

Instantly share code, notes, and snippets.

@dpsutton
Last active April 5, 2021 15:17
Show Gist options
  • Save dpsutton/ef1b4c4b199b99d67e2286993186d962 to your computer and use it in GitHub Desktop.
Save dpsutton/ef1b4c4b199b99d67e2286993186d962 to your computer and use it in GitHub Desktop.
(require '[clojure.string :as str])
(require '[clojure.core.server :as server])
#_(peek (str/split (str *ns*) #"\.")) ; foo.bar.quux> is just displayed as quux>
(clojure.main/repl
;; keep prompts shorter
:prompt (fn [] (printf "%s=> " (peek (str/split (str *ns*) #"\."))))
;; allow easily ending this sub repl watching for :repl/quit
:read server/repl-read)
;; fantastic reveal
(require '[vlaaad.reveal :as reveal])
(add-tap (reveal/ui))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment