From: wilnerthomas--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing value for fill-column
Date: Mon, 29 Aug 2022 10:39:50 +0200 (CEST) [thread overview]
Message-ID: <NAbLEQ0--3-2@tutanota.com> (raw)
In-Reply-To: <83h71wxu1k.fsf@gnu.org>
Aug 28, 2022, 15:32 by eliz@gnu.org:
>> Date: Sun, 28 Aug 2022 17:14:25 +0200 (CEST)
>> From: wilnerthomas@tutanota.com
>> Cc: help-gnu-emacs@gnu.org
>>
>>
>> Aug 28, 2022, 15:07 by eliz@gnu.org:
>>
>> >> But I want to change the value even if buffer has its own value for fill-column
>> >>
>> > If you do that in your init file, no buffer will have a local value
>> > yet.
>> >
>> How do these local values get set when users do not perform setq-default in their init file?
>> Some modes set them up if there is no mode-hook for it already?
>>
>
> Modes don't set these variables; users do.
>
> setq-default sets the default value, and that default value will be in
> effect in every new buffer, unless someone -- you -- changes the value
> in that buffer. Since you want the same different value in all
> buffers, you will probably not set the value in individual buffers,
> and thus the default which you changed with setq-default will stay in
> effect.
>
And once a user uses setq-default for a variable that variable cannot be changed again.
If users do not change fill-column, how does ruler-mode set the value?
For the hook you mentioned, I have done as follows
(defun column-property () (setq fill-column 72))
(add-hook 'prog-mode-hook #'column-property)
next prev parent reply other threads:[~2022-08-29 8:39 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NAbLEQ0--3-2@tutanota.com \
--to=help-gnu-emacs@gnu.org \
--cc=eliz@gnu.org \
--cc=wilnerthomas@tutanota.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.