revert text-mode-hook for the latex format requirement