You can do that in object mode. Go to:

That will apply the custom transform to your object, or whatever transform you have set. But to your situation you can also just set the orientation itself without the object moving if you first turn on Origins:
