[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing value for fill-column
From: |
Eli Zaretskii |
Subject: |
Re: Changing value for fill-column |
Date: |
Sun, 28 Aug 2022 17:33:20 +0300 |
> Date: Sun, 28 Aug 2022 16:20:14 +0200 (CEST)
> From: wilnerthomas@tutanota.com
> Cc: help-gnu-emacs@gnu.org
>
> > The doc string says:
> >
> > Automatically becomes buffer-local when set.
> >
> > So you either need to set it in a mode-hook of each mode where you
> > want to change the default value, or you should use setq-default to
> > change the default value in all buffers.
> >
> I know how to add hook to major mode with a function but not using a variable.
>
> (add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
You need to write a function that will both set fill-column and turn
on display-fill-column-indicator-mode.
- Changing value for fill-column, wilnerthomas, 2022/08/28
- Re: Changing value for fill-column, Eli Zaretskii, 2022/08/28
- Re: Changing value for fill-column, wilnerthomas, 2022/08/28
- Re: Changing value for fill-column,
Eli Zaretskii <=
- Re: Changing value for fill-column, wilnerthomas, 2022/08/28
- Re: Changing value for fill-column, Eli Zaretskii, 2022/08/28
- Re: Changing value for fill-column, wilnerthomas, 2022/08/28
- Re: Changing value for fill-column, Eli Zaretskii, 2022/08/28
- Re: Changing value for fill-column, wilnerthomas, 2022/08/29
- Re: Changing value for fill-column, Eli Zaretskii, 2022/08/29