On Sat, May 6, 2023 at 8:22 PM Hongyi Zhao <hongyi.z...@gmail.com> wrote: > > On Sat, May 6, 2023 at 7:58 PM Arash Esbati <ar...@gnu.org> wrote: > > > > Hongyi Zhao <hongyi.z...@gmail.com> writes: > > > > > I use the following tex file to do the test, but nothing is completed: > > > > From your screenshot, you're using the built-in latex-mode provided by > > Emacs. > > Thank you for pointing this out to me. > > > You want to activate AUCTeX for your experiment. > > But, we are doing the test using `emacs -Q` and how can I in this > scenario to enable AUCTeX? I mean, it seems that enabling AUCTeX needs > complicated configurations, so we use `init.el` to do the trick.
It seems that https://www.gnu.org/software/auctex/manual/auctex.html#Quick-Start gives some clues, but I'm not sure if eval the following in scratch or minibuffer is enough for testing with `emacs -Q`: (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) > > Then, the > > value of `completion-at-point-functions' should be: > > > > (TeX--completion-at-point t LaTeX--arguments-completion-at-point) > > > > and you should get in-buffer completion. > > > > Best, Arash > > Regards, Zhao