You are looking for a "macro".

A macro can do that