emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] error message at line break


From: Tim Cross
Subject: Re: [O] error message at line break
Date: Sun, 03 May 2020 11:18:53 +1000
User-agent: mu4e 1.4.3; emacs 27.0.91

Étienne Deparis <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]