Enable auto revert mode for some major modes.