This is how I setup, but I constantly keep forgetting.
At the start, I just rally up all my units so they can move togehter. But when I hit high amounts of food, I do the following:
1 - the heroes (heavy melee optional depending on numbers).
2 - Melee if I have more than 7.
3 - ranged or special units like kodos (or when I play FFA, Raiders)
4 - casters
7-0, Any factories for units.
Ne:
1 - Heroes (hunts-bears optional)
2 - Hunts or bears if I have too many
3 - Dryads
4 - Other casters with air support (chims)
7-0, Construction Yards
I need to get into a habit of controlling my men better. However, if I see a hero or something I can take advantage of. I rally up my hero killers with the heroes I have and try to hero nuke. Making sure I don't press 0 by accident

.
For sure keep caster groups together.So you can turn off autocasts and use manuals together if necessary.