user1647794
user1647794

Reputation:

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 [rather than googling for "java7 java.awt.Rectangle"] all the time.

Thanks! nx,

EDIT:

Because I am not scrooge mcduck, and tis the festive seasons, I am also willing to accept answers that function entirely within the CLI w/o using a browser (disqualifies w3m, lynx, links) --- but a pure CLI solution that does not use the clojure repl is acceptable too.

Upvotes: 4

Views: 285

Answers (1)

mobyte
mobyte

Reputation: 3752

You can start browsing the documentation from your repl using "clojure.java.javadoc":

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

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

Upvotes: 7

Related Questions