Oops, it seems what I really want to do is define a "major" mode, not a "minor" mode.