Automatically regenerate *scratch* mode if it's ever saved or closed.