TeX mode hooks