On Sun, Jul 30, 2023 at 3:40 PM Tassilo Horn <t...@gnu.org> wrote: > > Hongyi Zhao <hongyi.z...@gmail.com> writes: > > > 1. You said: > > > > "emacs -Q" session resulted in built-in latex mode > > > > Yes. This is true in all my testings. > > > > After the above step 1, I observed the following behavior: > > > > 2. If AUCTeX hasn't installed by `package-install', after I installed > > it by `package-install' and open a .tex file, then AUCTeX LaTeX mode > > will be enabled automatically. > > > > 3. If AUCTeX has already installed by `package-install', after I > > re-installed it by `package-reinstall' and open a .tex file, then > > *still* AUCTeX LaTeX mode will be enabled automatically. > > > > 4. If AUCTeX has already installed by `package-install', and I open a > > .tex file immediately without reinstall AUCTeX, then AUCTeX LaTeX mode > > will *not* be enabled automatically and the built-in latex mode still > > will be effective for the opened tex buffer. > > If the auctex ELPA package is already installed but you started with > emacs -Q, you can simply do M-x package-initialize RET to activate all > installed packages or, even better for debugging purposes, do > > M-: (progn (package-initialize t) (package-activate 'auctex)) RET > > to only activate auctex and no other package. Then you are running as > if you had no site config, no personal config, and no package except > auctex installed.
Very helpful! Thanks a lot for the tip. It does the trick. > Bye, > Tassilo Regards, Zhao