define-child-mode
define-child-mode is a Lisp macro in `mode-local.el
'.
(define-child-mode MODE PARENT &optional DOCSTRING)
Make major mode MODE inherit behavior from PARENT mode.
DOCSTRING is optional and not used.
To work properly, this should be put after PARENT mode local variables
definition.