Fork me on GitHub
#emacs
<
2021-10-14
>
jjttjj13:10:27

I like the "magic requires" with cloure-mode. Has anyone implemented a version that could include :refers in the require? Any tips for achieving this?

ericdallo13:10:16

clojure-lsp has this for some macros like deftest testing is

ericdallo13:10:43

And I have an idea to add support to add other user refers

jjttjj13:10:46

cool! I'll check that out

vemv16:10:34

magic-requires are provided by clj-refactor.el not clojure-mode.el for inserting a refer, https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-missing-libspec will work. It inserts aliases (`foo/` ), refers and imports alike. Related: https://clojurians.slack.com/archives/C0617A8PQ/p1634127493190800