That's super helpful, thank you! On Wed, Sep 24, 2014 at 6:17 AM, Hugo Duncan <h...@hugoduncan.org> wrote:
> In the REPL, there are functions that you always want to have handy, no > matter which namespace you are in. One way of achieving this is to put > these functions into a namespace with a short name, like `.`, so you can > refer to them easily. The original idea came from Gary Fredericks, who > also wrote dot-slash[1], which I discovered after writing this. > The `lein-shorthand` plugin[2] lets you declare such a namespace in your > leiningen profiles. > e.g. > {:user > {:dependencies [[alembic "0.3.2"]] > :plugins [[com.palletops/lein-shorthand "0.4.0"]] > :shorthand {. [alembic.still/distill alembic.still/lein]}}} > This would allow you to use `(./lein deps :tree)` to run the lein deps > task from any namespace, using alembic[3]. > See the README for full details, including how to make the shorthand > functions load the required namespaces lazily, on first use. > Hugo > [1] https://github.com/gfredericks/dot-slash > [2] https://github.com/palletops/lein-shorthand > [3] https://github.com/pallet/alembic -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.