Permalink
Browse files

Turn on sort-imports -- it's been correct all along.

  • Loading branch information...
skeeto committed Oct 25, 2011
1 parent dd4a062 commit 97c39f1dd4a81d02cab5014f2ae6ff230b5fce55
Showing with 2 additions and 4 deletions.
  1. +2 −4 java-docs.el
View
@@ -246,7 +246,8 @@
(if (java-has-import)
(progn
(java-goto-first-import)
- (call-interactively 'insert-java-import))
+ (call-interactively 'insert-java-import)
+ (sort-imports))
(progn
(goto-char (point-min))
(if (java-in-package)
@@ -256,9 +257,6 @@
(insert "\n")
(call-interactively 'insert-java-import)))))
-;; TODO: This needs a lot of work still. It should be putting the most
-;; generic imports first, down to most specific. Once it's working
-;; properly it should be called in `add-java-import.'
(defun sort-imports ()
"Sort the imports in the import section in proper order."
(interactive)

0 comments on commit 97c39f1

Please sign in to comment.