From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing value for fill-column
Date: Sun, 28 Aug 2022 17:33:20 +0300 [thread overview]
Message-ID: <83mtboxwsv.fsf@gnu.org> (raw)
In-Reply-To: <NAZolAR--3-2@tutanota.com> (wilnerthomas@tutanota.com)
> 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.
next prev parent reply other threads:[~2022-08-28 14:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-28 12:17 Changing value for fill-column wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-28 14:11 ` Eli Zaretskii
2022-08-28 14:20 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-28 14:33 ` Eli Zaretskii [this message]
2022-08-28 14:51 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-28 15:07 ` Eli Zaretskii
2022-08-28 15:14 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-28 15:32 ` Eli Zaretskii
2022-08-29 8:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-29 11:32 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mtboxwsv.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).