@@ -385,13 +385,13 @@ Code completion is a tricky aspect if you are trying to be as close to
385
385
a generic REPL as possible. Planck and lumo REPL implementations
386
386
explicitly provide completion functions in their REPL namespaces. For
387
387
clojure, you will need to have a library on your classpath. If you are
388
- using lein , you already have
389
- [ clojure-complete ] ( https://github.com/ninjudd/clojure-complete ) . You
388
+ using a recent version of Leiningen , you already have
389
+ [ incomplete ] ( https://github.com/nrepl/incomplete ) . You
390
390
could alternatively use ` compliment {:mvn/version "0.3.10"} ` .
391
391
392
392
``` emacs-lisp
393
- ;; for clojure-complete
394
- (inf-clojure-update-feature 'clojure 'completion "(complete .core/completions \"%s\")")
393
+ ;; for incomplete
394
+ (inf-clojure-update-feature 'clojure 'completion "(incomplete .core/completions \"%s\")")
395
395
396
396
;; or
397
397
;; for compliment
@@ -401,17 +401,14 @@ could alternatively use `compliment {:mvn/version "0.3.10"}`.
401
401
402
402
If you give a form for the completion form, it is your responsibility
403
403
to ensure that this namespace is on the classpath and required. If
404
- using lein, this is done for you with clojure-complete. If adding
405
- compliment, the following sample deps.edn can conveniently add the dep
406
- to your program.
407
-
408
- Sample deps.edn:
404
+ using Leiningen, this is done for you with ` incomplete ` . If adding
405
+ ` compliment ` , the following sample ` deps.edn ` can conveniently add the dep
406
+ to your program:
409
407
410
408
``` clojure
411
409
{:aliases {:compliment {:extra-deps {compliment {:mvn/version " 0.3.10" }}}}}
412
410
```
413
411
414
-
415
412
Use the startup command: ` clojure -A:compliment ` . Then require the ns
416
413
once so that the completion machinery will work: `(require
417
414
'compliment.core)`. Now tab completion should work.
@@ -422,7 +419,7 @@ to customization. Not only you can `setq` the customary
422
419
` inf-clojure-completion-form-planck ` and
423
420
` inf-clojure-completion-form-joker ` - the form to send to the REPL -
424
421
but you can also use ` inf-clojure-completions-fn ` for specifying a
425
- function that given the REPL response should return elisp data
422
+ function that given the REPL response should return Elisp data
426
423
compatible with
427
424
[ ` completion-at-point-functions ` ] ( https://www.gnu.org/software/emacs/manual/html_node/elisp/Completion-in-Buffers.html ) .
428
425
For more info run `M-x describe-variable RET
@@ -434,7 +431,7 @@ it](https://github.com/clojure-emacs/cider/blob/3e9ed12e8cfbad04d7618e649322765d
434
431
435
432
For an optimal Lumo experience the ` -d ` needs to be passed to Lumo
436
433
when launched from the command line. This disable ` readline ` support
437
- in order to play nicely with emacs .
434
+ in order to play nicely with Emacs .
438
435
439
436
## Troubleshooting
440
437
0 commit comments