Fork me on GitHub
#emacs
<
2022-02-02
>
lukasz19:02:20

I built a small helper ns on top of tools.namespace to make this stuff easier, it's designed for component - but it might work with integrant

👋 1
lukasz19:02:27

I'd love to share it but GH is down 😢

Derek19:02:35

I set cider-ns-refresh-before-fn and cider-ns-refresh-after-fn in my projects’ .dir-locals.el file

🪄 4
👍 2
kpav20:02:49

I was just looking into how to do this..perfect timing, thanks!

tomekw08:02:05

I guess setting

(setq cider-refresh-after-fn "user/reset")
will do? 🙂

practicalli-johnny09:02:03

cider-refresh can be configured to call a function before and after the refresh, stoping and starting any services, e.g: https://practical.li/spacemacs/clojure-repl/component-lifecycle.html#configure-cider-refresh-to-use-component-lifecycle

practicalli-johnny09:02:23

Cider-undef will remove names (vars) from the running REPL, useful to avoid the need to restart the REPL due to name changes. I rarely restart the REPL unless I really did something messy https://practical.li/spacemacs/clojure-repl/refresh-restart-repl.html

👍 1
💯 1
tomekw09:02:04

Thank you!

teodorlu11:02:04

@U05254DQM thanks so much - now I can remove lots of small rich comments removing namespaces!

👍 1