cider 2025-11-03

normally i'm able to enter a clojure project with a .dir-locals and run cider-jack-in from any clj file, atm, in this project, it's ignoring the .dir-locals.el, is there something i should check?

ok, i got jack-in to recognize the .dir-locals.el file again...

Usually happens if you do something like clone-indirect-buffer. If all else fails, you can always set default-directory to your project root and run (hack-dir-local-variables) .

❤️ 1

I just learned about eww - it occurs to me that this could be a great way to consult javadoc w/o leaving emacs. Have others already done this? In particular, it would be neat if cider-doc (or some other function) w/ the point on a symbol representing a java class or method popped the appropriate javadoc in eww with no other prompting, popping, or link following. Is that possible?

you may also like Dash/Zeal if it's specifically for fast docs

🆒 1

they're local and indexed copies

on similar note, is there an easy way to use clojure doc even for clojurescript? i am aware it is slightly different, but i am fine with that. Please do show me clojure-doc even when i am in clojurescript!

Thanks for the tip! I had no idea I could do something like this. I must say the presentation is quite lacking compared to the javadoc displayed in the browser but it is nice that I don't need to leave emacs.

Oh, wow, after (setq browse-url-browser-function 'eww-browse-url), cider-javadoc seems to do what I want. 🙂 👏

👍 1

Oh wow, it also works with the point on java.time.Duration/between (a static method) and java.time.Instant/.minus (an instance method (!))

also eww-readable (key R) makes javadoc page look much better, if you go to the top of a class javadoc, it has navigation cruft

😍 1

@hhausman Do you find the documentation provided by CIDER itself (`C-d C-d`) lacking compared to Javadoc displayed with eww?

And moreover, the links in the eww one are working, so I can navigate ...

Also, the page I land on with eww has the full description (including the class hierarchy, &c...) and all the other methods too, so searching C-s and C-r are also immediately super-helpful.

@hhausman Do you use JDK or perhaps JRE? Because if CIDER has access to Java sources, it will at least present this:

Still not as sexy as proper javadoc, of course, but it is offline and snappier.