"T.V Raman" <ra...@google.com> writes: > 1. Running Emacs 31 build from latest Git @HEAD > 2. auctex "14.0.6" installed via package.el > 3. I have package-initialize in my init and do not do anything else as > recommended by the auctex docs to install. > > When Emacs starts: > > 1. (featurep 'tex-site) ==t > > 2. tex-mode and latex-mode come from the built-in Emacs tex mode > > 3. tex.el from auctex is not yet loaded. > > 4. LaTeX docs start off in latex-mode (emacs builtin) -- not the > Auctex LaTeX-mode > > 5. It's all very confusing. > > Auctex sanity gets restored if I explicitly call M-x LaTeX-mode > after opening a LaTeX file.
Wild guess: What's the value of `TeX-modes' in the setup above? ,----[ C-h v TeX-modes RET ] | TeX-modes is a variable defined in ‘tex-site.el’. | | Its value is | (tex-mode plain-tex-mode texinfo-mode latex-mode doctex-mode) | | List of built-in TeX modes redirected to AUCTeX modes. | | This variable can’t be set normally; use customize for that, or | set it with ‘TeX-modes-set’. `---- If that variable has sane values, then please do: • emacs -Q • eval: (progn (package-initialize t) (package-activate 'auctex)) and open a .tex file. If that works as expected, your AUCTeX installation should work and we have to look somewhere else. HTH. Best, Arash