Passing M-x check-doc, use define minor-mode.