inf-clojure

GitHub: https://github.com/clojure-emacs/inf-clojure Discord (official chat): https://discord.gg/nFPpynQPME
2020-04-19T15:09:15.006700Z

Hi all, just starting to mess with inf-clojure. The default inf-clojure-completion-form value is (complete.core/completions "%s") but this doesn't work for me until the library is require'ed. Is this expect? When I require it from the repl it works. What's the normal mechanism for requiring things like this? I'm attempting

(add-hook 'inf-clojure-mode-hook '(lambda ()
                                    (inf-clojure--send-string
                                     (inf-clojure-proc)
                                     "(require 'complete.core)")))
But this isn't working, I beleive because the inf-clojure-proc isn't ready yet

2020-04-19T15:15:25.007700Z

Or is this something my clojure repl process should be handling (ie by eval'ing the require inside the clj repl when it starts)

2020-04-19T16:12:07.010Z

One more thing, for the inf-clojure-arglists-form, the default is

(try
     (:arglists
      (clojure.core/meta
       (clojure.core/resolve
        (clojure.core/read-string \"%s\"))))
     (catch #?(:clj Throwable :cljr Exception) e nil))
But this doesn't work for me unless i remove the escapes on the quotes. Changing \"%s\" to "%s" fixes it for me. I'm in windows, which could be related. Is this worth opening an issue for?

2020-04-19T16:16:37.010600Z

I see the readme update above answers my first question 🙂