Browing java. * Docs directy from Clojure Repl

I know about (doc ...)

I know about (user / clojuredocs ...)

I am a greedy bastard and want to know if I can view java ... * documentation from my repl [and not googling for java7 java.awt.Rectangle "] all the time.

Thanks! nx

EDIT:

Because I am not scrooge mcduck, and these are holiday seasons, I also agree to accept answers that fully function inside the CLI without using a browser (disqualifies w3m, lynx, links) --- but a pure CLI solution that does not use the clojure parameter is also acceptable .

+4
source share
1 answer

You can start viewing the documentation from your replica using "clojure.java.javadoc":

(use 'clojure.java.javadoc) (javadoc java.awt.Rectangle) 

It opens the default browser (you can define w3m or any cli browser as the default browser) using javadoc.

+7
source

All Articles