Esc
Macros
New
/script ClearTarget();
/script TargetNearestEnemy();
Done
Put it on an auxillary bar and bind it to tab.
You posted this ages ago, and I'm looking at trying it out, but I had one question: Does it still switch between multiple targets, or is it fixed to target the closest enemy only?
It APPEARS to me that it will only target the nearest, but I haven't tried it quite yet.