I have a strange problem. When I set up my AUCTeX configuration for Latex like this
(require 'tex)
(TeX-global-PDF-mode t)
it works for me.
But when I alter the code by putting in a lambda
function
(add-hook LaTeX-mode-hook (lambda ()
(require 'tex)
(TeX-global-PDF-mode t)
))
it won't work.
Could someone help me? Thank you.