Attach gear to Spell

As a warrior I need to make macros to put a shield on when using spells like shield block and have to make a lot of other macros to switch weapons back.

What if you can just assign a shield or a weapon to spells to make it easier?