Emacs: Optimize Imports?
Hello folks, Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the system to optimize the imports? I'm looking for something similar to the way Intellij does things: http://www.jetbrains.com/idea/webhelp/optimizing-imports.html Converting existing Java example to Clojure and many of the examples don't include import statements. Working with recursive greps and opening the JARs in Emacs helps but I just wanted to ask around if anyone has an easier way. Tried bringing the project into Intellij with the Leiningen and La Clojure plugins but Code-Optimize Imports is disabled. Looks like this was asked about previously but no answer was reached. http://groups.google.com/group/clojure/browse_thread/thread/98f985926f096850/602f8ff61ec735ae?lnk=gstq=emacs+imports#602f8ff61ec735ae Cheers, Daniel -- 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
Re: Emacs: Optimize Imports?
I believe this might be what close to what you are looking for: https://github.com/technomancy/slamhound On Sun, Jan 1, 2012 at 1:03 PM, Daniel Glauser danglau...@gmail.com wrote: Hello folks, Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the system to optimize the imports? I'm looking for something similar to the way Intellij does things: http://www.jetbrains.com/idea/webhelp/optimizing-imports.html Converting existing Java example to Clojure and many of the examples don't include import statements. Working with recursive greps and opening the JARs in Emacs helps but I just wanted to ask around if anyone has an easier way. Tried bringing the project into Intellij with the Leiningen and La Clojure plugins but Code-Optimize Imports is disabled. Looks like this was asked about previously but no answer was reached. http://groups.google.com/group/clojure/browse_thread/thread/98f985926f096850/602f8ff61ec735ae?lnk=gstq=emacs+imports#602f8ff61ec735ae Cheers, Daniel -- 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 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
Re: Emacs: Optimize Imports?
Perfect. Thanks! On Jan 1, 12:05 pm, gaz jones gareth.e.jo...@gmail.com wrote: I believe this might be what close to what you are looking for: https://github.com/technomancy/slamhound On Sun, Jan 1, 2012 at 1:03 PM, Daniel Glauser danglau...@gmail.com wrote: Hello folks, Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the system to optimize the imports? I'm looking for something similar to the way Intellij does things: http://www.jetbrains.com/idea/webhelp/optimizing-imports.html Converting existing Java example to Clojure and many of the examples don't include import statements. Working with recursive greps and opening the JARs in Emacs helps but I just wanted to ask around if anyone has an easier way. Tried bringing the project into Intellij with the Leiningen and La Clojure plugins but Code-Optimize Imports is disabled. Looks like this was asked about previously but no answer was reached. http://groups.google.com/group/clojure/browse_thread/thread/98f985926... Cheers, Daniel -- 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 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
Re: Emacs: Optimize Imports?
It would be cool to get an emacs command to run slamhound directly in a file... h #lightbulb On Jan 1, 2:08 pm, Daniel Glauser danglau...@gmail.com wrote: Perfect. Thanks! On Jan 1, 12:05 pm, gaz jones gareth.e.jo...@gmail.com wrote: I believe this might be what close to what you are looking for: https://github.com/technomancy/slamhound On Sun, Jan 1, 2012 at 1:03 PM, Daniel Glauser danglau...@gmail.com wrote: Hello folks, Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the system to optimize the imports? I'm looking for something similar to the way Intellij does things: http://www.jetbrains.com/idea/webhelp/optimizing-imports.html Converting existing Java example to Clojure and many of the examples don't include import statements. Working with recursive greps and opening the JARs in Emacs helps but I just wanted to ask around if anyone has an easier way. Tried bringing the project into Intellij with the Leiningen and La Clojure plugins but Code-Optimize Imports is disabled. Looks like this was asked about previously but no answer was reached. http://groups.google.com/group/clojure/browse_thread/thread/98f985926... Cheers, Daniel -- 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 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
Re: Emacs: Optimize Imports?
Matthew Boston matthew.bos...@gmail.com writes: It would be cool to get an emacs command to run slamhound directly in a file... h #lightbulb It exists (heck, you can run it on your whole project with one command), but it's not very polished since the pretty-printing of ns forms is difficult. If you're interested in helping I could give more details. -Phil -- 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