Liking cljdoc? Tell your friends :D

nrepl-bind

Clojars Project

It’s really handy to be able to use set! on dynamic vars from nrepl clients. They will persist across evaluations, test calls, etc. without the editor providing a specific lever. Unfortunately, you can only set! vars in a short list.

This middleware allows you to add vars to that list from a running REPL by calling io.dominic.nrepl-bind/try-bind-vars or io.dominic.nrepl-bind/add-bound-var. Following that, you can call set! to your heart’s content.

Installation

The middleware var is io.dominic.nrepl-bind/wrap-bind. Add this to :middleware, pass it with --middleware or use your editor-specific configuration.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close