Variable: change-major-mode-hook

Normal hook run before changing the major mode of a buffer.
The function `kill-all-local-variables' runs this before doing anything else.