Korny, Slamhound does some of what you're talking about, but not as an editor extension, https://github.com/technomancy/slamhound
On Sat, Mar 23, 2013 at 6:58 PM, Korny Sietsma <ko...@sietsma.com> wrote: > I'd also love something to optimise the "ns" form - I'm regularly doing > tasks by hand that could in theory be automated; adding a new > not-yet-imported library can be quite tedious, it'd be great to be able to > type "(defdb" and be able to hit a key combo to add a new :require entry. > A generalised "organise imports" would also be nice, to remove unused > imports, convert :use to :require, turn ":refer :all" into ":as" and the > like. > > Oh, and a pony! Can I have a pony, too? :) > > - Korny > On 23 Mar 2013 14:30, "Russell Mull" <russell.m...@gmail.com> wrote: > >> I find myself doing that a lot by hand, a tool to help would be very >> useful. Some others that I've thought of are: >> >> - change between (fn [x] ...) and #(...) >> - pull sexp up to let, or introduce a new let (like introduce variable in >> java et. al) >> >> >> On Saturday, March 23, 2013 10:42:10 AM UTC+9, Alex Baranosky wrote: >>> >>> I'd really like to see a way to factor to code that uses ->/->> and back >>> again. >>> >>> On Fri, Mar 22, 2013 at 12:01 PM, Laurent PETIT <lauren...@gmail.com>wrote: >>> >>>> 2013/3/22 Daniel Glauser <dangl...@gmail.com> >>>> >>>>> I feel your pain, would love to see some Clojure refactorings. I had >>>>> started working on the 1.3 branch of clojure-refactoring trying to bring >>>>> it >>>>> up to speed. I met with Tony (the original author of clojure-refactoring) >>>>> and Phil H. at Clojure/West. Tony was very adamant that we ditch his code >>>>> and start over. Currently I'm doing some experimenting with sjacket ( >>>>> https://github.com/cgrand/**sjacket<https://github.com/cgrand/sjacket>) >>>>> trying to see if we could make that work for renaming. Once I'm confident >>>>> that direction will work I'm happy to throw some code up on Github. If >>>>> someone beats me to it then I'd like to contribute to their project. >>>>> >>>>> I just created a #clojure-refactoring channel up on Freenode to make >>>>> it easier to collaborate. We can rename the node once a name emerges for a >>>>> new project. >>>>> >>>> >>>> Please note that I've also created a project entry for the Google >>>> Summer Of Code for this : creating refactoring library + integration of it >>>> into Counterclockwise : http://dev.clojure.org/** >>>> display/community/Project+**Ideas#ProjectIdeas-** >>>> RefactoringfeatureforCCWotherI**DEs<http://dev.clojure.org/display/community/Project+Ideas#ProjectIdeas-RefactoringfeatureforCCWotherIDEs> >>>> >>>> I think writing a refactoring library with more than one client in mind >>>> (e.g. a "command line" client as well as an "IDE" client) is interesting >>>> because it will help shape its API (for instance, an "IDE" client will >>>> usually want to offer a view of the modifications to be applied, thus >>>> refactoring can have a review step). >>>> >>>> Cheers, >>>> >>>> -- >>>> Laurent >>>> >>>> >>>>> >>>>> On Thursday, March 21, 2013 12:12:42 AM UTC-6, Akhil Wali wrote: >>>>> >>>>>> A fairly new project for refactoring Clojure is clj-refactor.el. >>>>>> Not too much functionality yet, but supplements clojure-refactoring >>>>>> pretty well. >>>>>> clj-refactor.el will later interop with nRepl, or that's the plan I >>>>>> heard. >>>>>> >>>>>> That aside (and I know I'm being redundant), refactoring any Lisp is >>>>>> a snap with paredit-mode. >>>>>> It doesn't do stuff like renaming a function or exracting a var, but >>>>>> I've had some success in making these operations as interactive >>>>>> functions. >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Mar 21, 2013 at 8:11 AM, Devin Walters <dev...@gmail.com>wrote: >>>>>> >>>>>>> Yeah it sort of bums me out that clojure-refactoring has been in the >>>>>>> ditch. >>>>>>> >>>>>>> There are a number of tasks to get this back into a good state. The >>>>>>> plan right now is to take tests (which were mostly failing and using >>>>>>> outdated dependencies) from the old-test directory and get them passing >>>>>>> under Midje. Then, get it to play nicely with nrepl and update any elisp >>>>>>> that needs updating to bring back the clojure-refactoring minor mode. >>>>>>> >>>>>>> If anyone wants to help resurrect this project: https://github.com/* >>>>>>> *de**vn/clojure-refactoring/tree/**cl**ojure-1.5<https://github.com/devn/clojure-refactoring/tree/clojure-1.5> >>>>>>> your >>>>>>> help would be appreciated. I created a new branch and started >>>>>>> bringing old failing tests over. Feel free to drop me a pull request. >>>>>>> Big, >>>>>>> sweeping commits and tiny typo commits are both equally welcome. >>>>>>> >>>>>>> On Wednesday, March 20, 2013 at 8:22 PM, Dave Kincaid wrote: >>>>>>> >>>>>>> Thanks. It looks like nothing has happened on that in a year and it >>>>>>> appears to require slime/swank. But it's a start I guess if there isn't >>>>>>> anything else. >>>>>>> >>>>>>> On Wednesday, March 20, 2013 6:13:30 PM UTC-7, Devin Walters (devn) >>>>>>> wrote: >>>>>>> >>>>>>> I don't think much has happened with it recently, but I used to >>>>>>> use >>>>>>> https://github.com/joodie/******clojure-refactoring<https://github.com/joodie/clojure-refactoring> >>>>>>> . >>>>>>> >>>>>>> -- >>>>>>> '(Devin Walters) >>>>>>> Sent from my Motorola RAZR V3 (Matte Black) >>>>>>> >>>>>>> On Wednesday, March 20, 2013 at 8:05 PM, Dave Kincaid wrote: >>>>>>> >>>>>>> I'm wondering if there are any refactoring tools around for working >>>>>>> with Clojure projects in Emacs. There seems to be all kinds of other >>>>>>> tools >>>>>>> except for refactoring. I'm really looking for simple things like ways >>>>>>> to >>>>>>> easily rename variables, functions, namespaces, etc. That seems to be >>>>>>> the >>>>>>> most common thing I'm trying to do. Are there any tools out there to >>>>>>> make >>>>>>> it easier? >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Dave >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> 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<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+u...@**googlegroups.com. >>>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>>> ps/opt_out <https://groups.google.com/groups/opt_out>. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> 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<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+u...@**googlegroups.com. >>>>>>> For more options, visit >>>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>>>> . >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> 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<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+u...@**googlegroups.com. >>>>>>> For more options, visit >>>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>>>> . >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Akhil Wali >>>>>> >>>>>> # http://github.com/darth10 <https://github.com/darth10> >>>>>> # http://darth10.github.com >>>>>> >>>>>> -- >>>>> -- >>>>> 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<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+u...@**googlegroups.com. >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>>> -- >>>> 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<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+u...@**googlegroups.com. >>>> For more options, visit >>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>> . >>>> >>>> >>>> >>> >>> -- >> -- >> 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/groups/opt_out. >> >> >> > -- > -- > 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/groups/opt_out. > > > -- -- 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/groups/opt_out.