Use derived-mode-p to check auto-less-exclude-modes.