Skip to content

Support for custom cider-ns-refresh-fn #849

@filipesilva

Description

@filipesilva

I'd like to use https://tonsky.me/blog/clj-reload/ instead of clojure.tools.namespace to refresh my code. The main thing I like it in is how defonce just works, and I don't have to fiddle around with clojure.tools.namespace in my source code.

I see there's cider-ns-refresh-before-fn and cider-ns-refresh-after-fn in the docs, but there's no configurable cider-ns-refresh-fn at least in those docs. So that seemed like a nice hook point.

I'd be interested in making a PR for this approach, or some other approach you feel is better. Thanks for all the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions