Skip to content

Instantly share code, notes, and snippets.

@johan-carlsson
Forked from bhb/README.md
Last active October 12, 2022 22:06
Show Gist options
  • Select an option

  • Save johan-carlsson/6aec54a93aafadd198dc7125779ce6f3 to your computer and use it in GitHub Desktop.

Select an option

Save johan-carlsson/6aec54a93aafadd198dc7125779ce6f3 to your computer and use it in GitHub Desktop.
Clojure friendly mode with nrepl starting on port 7888, inspired by https://github.com/slipset/friendly
{:paths ["."]
:deps {com.bhauman/rebel-readline {:mvn/version "0.1.3"}
expound {:mvn/version "0.7.0"}}}
(ns friendly
(:require [rebel-readline.main]
[expound.alpha :as expound]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as st]))
(defn -main []
(set! s/*explain-out* (expound/custom-printer {:print-specs? false
:show-valid-values? true
:theme :figwheel-theme}))
(st/instrument)
(rebel-readline.main/-main))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment