Fork me on GitHub
#emacs
<
2019-11-01
>
Eric Ihli18:11:56

Is it possible to get autocomplete through a socket repl? I'm connecting to a socket repl with (inf-clojure '(host . port)) because I was tired of fighting with Cider. But now I miss things like autocomplete.

bozhidar09:11:35

Completion is missing for the socket REPL mostly because you need some completion library for it. CIDER bundles this, but inf-clojure can’t.

bozhidar09:11:39

Some work started in the past to check for compliment and use it if available, but we never finished this. These days all my efforts are focused on CIDER and inf-clojure is kind of stuck. There are plenty of things to improve there, but I simply don’t have time for it.

bozhidar09:11:26

It’s a pity to hear you’ve been struggling with CIDER - IMO it’s orders of magnitudes better than inf-clojure, but I’m obviously biased. 🙂

bozhidar09:11:11

My bad - there’s actually support the older clojure-complete library https://github.com/clojure-emacs/inf-clojure/blob/master/inf-clojure.el#L951 I totally forgot about this. This should work out-of-the-box if the repl you’re connecting two was created using lein repl or boot repl.

sogaiu18:11:44

@ericihli it's not perfect but i tend to use M-/ (as well as company, but not sure if company is actually helping). in the future, the indexing thing (TAGS) i mentioned before might be able to be used for completion using xref in emacs. if there is interest, i can investigate getting the TAGS info used for completion. (fwiw, i'm using a custom socket repl)

Eric Ihli18:11:42

Oh sick. That's my first introduction to dabbrev. I'm seeing there's a helm-dabbrev too but it's giving me "No expansion found" even though dabbrev is finding and cycling through many expansions. This will solve a lot of my problems. Thanks again!

sogaiu18:11:47

i went many years without dabbrev -- it was a nice find 🙂 hope things improve for you!

andy.fingerhut18:11:14

Yeah, seems like dabbrev in Emacs should somehow be more prominent in the docs, e.g. the start tutorial, but I guess there is so much that is cool about Emacs that you can't put it all in a tutorial.

sogaiu18:11:09

i guess that's why there's that weird diagram of the emacs learning curve? 🙂