Last active
April 5, 2021 15:17
-
-
Save dpsutton/ef1b4c4b199b99d67e2286993186d962 to your computer and use it in GitHub Desktop.
This file contains 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
(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