On 25/08/2021 16:52, Arash Esbati wrote:
Kourosh Kalayeh <kouro...@umbc.edu> writes:

On 25 Aug 2021, at 10:27, Thibaut Verron wrote:

Oh I'm very sorry, I read "insert" instead of "indent". What is the
value of the variable auto-fill-function in your buffer?
I ran `C-h v` with `auto-fill-function` as an argument (while in
AUXTeX mode), and I got its value as nil.
This behaviour is due to this change in beamer.el[1].  AUCTeX now checks
if users have auto-filling enabled before filling.  Hence, you have to
turn that mode on in order to get the old behaviour with something like
this in your init file:

     (add-hook 'LaTeX-mode-hook #'turn-on-auto-fill)

With the side effect of enabling auto-fill.

If you don't want auto-fill, a less intrusive but somewhat more hazardous alternative could be:

(add-hook 'LaTeX-mode-hook (lambda () (setq auto-fill-function 
'indent-according-to-mode)))

Best wishes,

Thibaut


Reply via email to