排除因素是个好主意(add-hook 'LaTeX-mode-hook)
吗?这样做有什么优点和缺点。
例如你可以写:
(add-hook 'LaTeX-mode-hook (lambda ()
;;(add-to-list [...]
)
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)
;;[...lots of other LaTeX config stuff]
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
或者可以将LaTeX-mode-hook
声明分解并编写如下内容:
(add-hook 'LaTeX-mode-hook (lambda ()
;;(add-to-list) [...]
(TeX-PDF-mode)
;;[...lots of other LaTeX config stuff]
(flyspell-mode)
))