derived-mode-p

derived-mode-p is a compiled Lisp function in `subr.el'.

(derived-mode-p &rest MODES)

Non-nil if the current major mode is derived from one of MODES.
Uses the `derived-mode-parent' property of the symbol to trace backwards.