abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.21k stars 133 forks source link

Modify completion-at-point-functions locally and don't override. #665

Open toniz4 opened 1 year ago

toniz4 commented 1 year ago

This simple modification only changes completion-at-point-functions locally, and it adds #'lispy-clojure-complete-at-point to it, instead of overiding the var.

Since it's only evaluated after cider-mode, we can count that cider-complete-at-point is already in the capf.

And adding the lispy function in that way, it makes it play better with other packages that locally binds completion-at-point-functions, like eglot.

The same idea is used by CIDER