Implement automap rotate mode.

Enabled in the automap using the R key. Disabled by default.