4

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.

2
  • would it be acceptable to use a browser but not leave emacs? or is that cheating? Commented Dec 5, 2012 at 0:56
  • @ArthurUlfeldt: as a VIM user, I'd upvote but not accept. Commented Dec 5, 2012 at 2:42

1 Answer 1

7

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.