How to quickly repeat commands and customize settings for right-click button?

CAD users often need to repeat several commands such as Circle and Line. To make it more efficient, the CAD system has provided many ways.