Étienne Deparis <etie...@depar.is> writes:
> > I confirm that I've the same variable set in my Emacs config file: > > (setq-default auto-fill-function 'do-auto-fill) > > Which I take from the Emacs Wiki AutoFill page¹, with the explanation > of: « If you would like to enable auto fill for all major modes, you can > add this single line to your configuration ». > > ¹ https://www.emacswiki.org/emacs/AutoFillMode > That is a weird way to turn on auto-fill mode and I would not be confident it is setting up the mode correctly. See the Emacs manual for the official way to do this using mode hooks. I don't think you want to turn on auto-fill mode in ALL modes. Some modes, you really don't want Emacs to modify buffer contents by filling. Typically, you only want this when your dealing with text (so text-mode hook is a popular choice for adding auto-fill-mode). I would also be wary of emacswiki advice. While there is some good advice there, there is some which is not very good and lots which is outdated/obsolete. This is the downside of wikis. Always try to verify the advice using the manual corresponding to your Emacs version. -- Tim Cross