cider

Drew Verlee 2025-11-03T22:04:35.943519Z

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?

Drew Verlee 2025-11-03T22:08:50.943579Z

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

hkjels 2025-11-04T07:48:08.321959Z

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
Harold 2025-11-03T04:00:44.710359Z

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?

lvh 2025-11-04T20:20:31.339509Z

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

🆒 1
lvh 2025-11-04T20:20:42.248579Z

they're local and indexed copies

Zeniten 2025-11-03T10:46:28.618159Z

🤩

karol.adamiec 2025-11-03T11:12:33.823939Z

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!

jumar 2025-11-03T12:35:49.190599Z

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.

Harold 2025-11-03T04:13:29.934509Z

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

👍 1
Harold 2025-11-03T04:16:34.795389Z

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

Harold 2025-11-03T04:16:47.376869Z

👀

tatut 2025-11-03T06:48:48.467639Z

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
oyakushev 2025-11-05T09:06:12.478579Z

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

Harold 2025-11-05T13:40:01.467819Z

C-c C-d C-d:

Harold 2025-11-05T13:40:42.280609Z

C-c C-d C-j:

Harold 2025-11-05T13:41:16.634549Z

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

Harold 2025-11-05T13:44:27.561549Z

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.

oyakushev 2025-11-05T17:42:32.854819Z

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

oyakushev 2025-11-05T17:43:09.072449Z

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