Replace fundamental-mode-hook with change-major-mode-after-body-hook.