I think the Commander plugin has a macro feature that lets you make a command that runs multiple commands.