That's how Detect Evil works in my group's games. The spell or ability detects Evil with a capital E--beings with an aura of evil, like clerics, or creatures with the evil subtype--not ordinary everyday jerks. We do tend to give the evil subtype to necromancers and undead more often, though...