
我嘗試從 Emacs MELPA 編譯 auctex。版本是:11.88.4
當我第一次打開.tex文件,編譯AUCTEX,並將其更改為“TeX-latex-mode”時,Emacs將正常工作,功能表列也更改為latex狀態。
但是,當我關閉 Emacs,再次重新啟動 Emacs 並開啟 .tex 檔案時,Emacs 將給出:
Debugger entered--Lisp error: (error "Autoloading failed to define function TeX-latex-mode")
而且 auctex 不起作用...
問題似乎出在初始化 tex 檔案的 auctex 時自動載入某些狀態。
有什麼幫助嗎?
答案1
問題解決了!我的錯。
我模組化了 init.el 並將 LaTeX 設定分離到 Latex.el,這與latex.el
auctex 中的衝突。
我將檔案重新命名為 Latex_settings ,一切正常。 (一個小警告,沒有“tex-start-shell”的文檔字串,但這沒關係。)