Hello Jeff,
Thank you again for your feedback :-)
I made a new version jde-import-org.el attached here.
It contains the following changes:
- New `jde-import-group-function' option to specify the function used
to associate import token to group. The default one is
`jde-import-group-of'. This let the user to completely handle the
way imports are grouped.
- New `jde-import-sorted-groups' option to specify if groups will be
sorted. Notice that the *default* group (the one that contains
imports not belonging to any specific group) is allways the last
group.
- Improvement of the function `jde-import-group-of'. For consistency
`jde-import-group-rules' is now `jde-import-group-of-rules' and it
is now possible to associate a group regexp to a particular name.
I was able to organize imports like your need using the following
customization:
- `jde-import-sorted-groups' set to 'asc (Sort groups alphabetically).
- `jde-import-group-of-rules' set to
'(("^\\([^.]+\\([.][^.]+[.]\\)*\\)" . 1)). If you add the rule
("^javax?\\." . "") then standard packages will always go into a
topmost group. Also, you can use ("^javax?\\." . "java") to have all
groups in alphabetic order.
Any feedback will be welcome.
Sincerely,
David
jde-import-org.zip