Fork me on GitHub
#cider
<
2018-01-30
>
bozhidar09:01:37

> cider-font-lock-as-clojure doesn’t use CIDER’s extra font lock rules. What’s the easiest way to make it do that?

bozhidar09:01:56

Hmm, I never thought about this to be honest. Probably you’d need to enable cider-mode in some temp buffer and evaluate the code there to get the right font-locking.

xiongtx18:01:10

I ended up making cider-var-info calls for each Var. This is slow but we only need to do build the source once (well, except for a little trickiness involving whether CIDER was jacked in or not). Unfortunately cider-var-info doesn’t return a type the way cider-apropos does, so I had to resort to some hack: https://github.com/clojure-emacs/helm-cider/blob/27a773d1477449605d463333de378531caa681da/helm-cider-util.el#L95-L101. This works 👌 for most things but not for e..g multimethods, which don’t return arglists for some reason.