I wonder if this couldn't have been better implemented as nrepl middleware.
On Tuesday, December 18, 2012 10:34:01 AM UTC+1, Niels van Klaveren wrote: > > It's a feature of the REPLy NREPL client. See > https://github.com/trptcolin/reply/blob/master/src/clj/reply/initialization.cljhow > it works so you can emulate it. > > On Tuesday, December 18, 2012 5:10:00 AM UTC+1, Karim A. Nassar wrote: >> >> When using nrepl in emacs (cdoc <fn>) emits: >> >> CompilerException java.lang.RuntimeException: Unable to resolve symbol: >> cdoc in this context, compiling:(NO_SOURCE_PATH:1) >> >> However, in "lein repl" I see: >> >> Loading clojuredocs-client... >> >> How do I make nrepl as smart as lein repl? >> >> >> >> On Fri, Dec 14, 2012 at 10:08 PM, Andy Fingerhut <andy.fi...@gmail.com>wrote: >> >>> I would recommend checking out >>> >>> http://clojuredocs.org >>> >>> If you use Leiningen version 2, you can get similar output with these >>> two commands: >>> >>> lein repl >>> user=> (doc first) >>> user=> (cdoc first) >>> >>> doc gives the "doc string" built into Clojure. cdoc gives the examples >>> from ClojureDocs.org for that symbol, as long as you have an Internet >>> connection. >>> >>> Andy >>> >>> On Dec 14, 2012, at 3:40 PM, lin...@redhandgaming.net wrote: >>> >>> > I'm learning Clojure, and I learn best by jumping in. I'm interested >>> in using Noir. Noir has a full API reference, so when I'm reading other >>> people's Noir code, I can just look up the exact function and see what it >>> does. >>> > >>> > I can't find a similar thing for Clojure. I'm looking through other >>> people's Clojure code. I see something like (keyword (or (first m) :dev)) >>> and I don't really know where to start understanding this. I know enough to >>> know that keyword, or, and first are all functions - and with a google >>> search or two, I can figure out what 'first' does. But I can't easily find >>> out what 'or' and 'keyword' do, because when I google those things, I get >>> all kinds of screwy results, completely unrelated to what I'm trying to >>> find out. >>> > >>> > Where can I find, or does there exist, a place where I can view all >>> Clojure's built in functions with a short description of their arguments >>> and what they do? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to clo...@googlegroups.com >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> To unsubscribe from this group, send email to >>> clojure+u...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en >>> >> >> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en