help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Auto Fill Comments


From: daniela-spit
Subject: Re: Auto Fill Comments
Date: Thu, 26 Nov 2020 18:35:16 +0100


> Sent: Thursday, November 26, 2020 at 6:22 PM
> From: "Christopher Dimech" <dimech@gmx.com>
> To: tomas@tuxteam.de
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Auto Fill Comments
>
> > Sent: Thursday, November 26, 2020 at 5:00 PM
> > From: tomas@tuxteam.de
> > To: "Christopher Dimech" <dimech@gmx.com>
> > Cc: daniela-spit@gmx.it, help-gnu-emacs@gnu.org
> > Subject: Re: Auto Fill Comments
> >
> > On Thu, Nov 26, 2020 at 04:23:07PM +0100, Christopher Dimech wrote:
> > > I am getting somewhat confused because I have also seen
> > > people using set-fill-column and setq-default.
> > >
> > > Is doing fill-column and set-fill-column the same thing?
> >
> > It should. Do C-h f set-fill-column to get the details (if everything
> > else fails, read the instructions :)
> >
> > I think set-fill-column is a wrapper around (setq fill-column <value>)
> > (which will set it buffer-local, see C-h v fill-column) to conveniently
> > bind it, as an interactive functn to C-x f.
> >
> > The setq-default does something subtly different: it sets the variable's
> > default value, so its effect won't be buffer-local but global (for all
> > new buffers, which haven't a buffer local value set).
> >
> > So if you want /all/ your buffers to have your value 72 (unless stated
> > otherwise specifically for your buffer), setq-default is your friend.
>
> Does that mean that setq-default also enables automatic filling?
>
> I need some explanation about setq, setq-default, and setq-local.

My general impression that for fill-column to get effect,  you got to enable
auto-fill-mode first.

>
>
> > If you are targeting a specific buffer, use set-fill-column, or
> > do (setq fill-column <foo>), as you prefer.
> >
> > Cheers
> >  - t
> >
>
>



reply via email to

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