You can't macro movement but what I do is have "F" as a movement key on the Priest but nothing on the Pally. You can then just tap F before you run up to melee and leave the Priest at casting range.