Auto set ennemy an ally who set you as an ennemy

It could be great to have a checkbox in the diplomacy menu to set automaticaly a player as an ennemy, the ally or neutral who set you as ennemy.
Sometime you lose only because you wasn’t quick enough to set the one who attack you as an ennemy. With that the game will be more enjoyable.