Basic macro:
stop casting
/target corrupted lightning totem
/cast (put your instant spell here)
/start attack
This ia a hunter macro, which also sends in pet
/stop casting
/target corrupted lightning totem
/cast arcane shot
/petattack
/start attack
Gorhald