On Sun, May 28, 2023 at 12:47 AM Arash Esbati <ar...@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.z...@gmail.com> writes:
>
> > Thank you. It works. But why must you first run `C-c C-n'?
>
> AUCTeX parsing abilities are disabled by default for various reasons
> (search the archives for the reasons).  Check the manual for some
> possibilities how you can configure AUCTeX acc. to your needs in that
> regard.

It's the following setting, as explained in the document here [1],
which I enabled so far:

 (setq TeX-parse-self t) ; Enable parse on load.
 (setq TeX-auto-save t) ; Enable parse on save.

[1] https://www.gnu.org/software/auctex/manual/auctex/Parsing-Files.html

> Best, Arash

Regards,
Zhao

Reply via email to