* global-whitespace style and activation
@ 2022-07-19 12:55 carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-19 13:10 ` Philip Kaludercic
[not found] ` <87lesps0xs.fsf@posteo.net-N7L_Kfs----2>
0 siblings, 2 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-19 12:55 UTC (permalink / raw)
To: Help Gnu Emacs
Have been somewhat perplexed on setting the style for `global-whitespace-mode`. Looks as if the style has to be set before enabling the mode. Usually one would not have access to the mode variables if the mode is not yet enabled.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: global-whitespace style and activation
2022-07-19 12:55 global-whitespace style and activation carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-07-19 13:10 ` Philip Kaludercic
[not found] ` <87lesps0xs.fsf@posteo.net-N7L_Kfs----2>
1 sibling, 0 replies; 3+ messages in thread
From: Philip Kaludercic @ 2022-07-19 13:10 UTC (permalink / raw)
To: carlmarcos--- via Users list for the GNU Emacs text editor; +Cc: carlmarcos
carlmarcos--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> Have been somewhat perplexed on setting the style for
> `global-whitespace-mode`. Looks as if the style has to be set before
> enabling the mode. Usually one would not have access to the mode
> variables if the mode is not yet enabled.
Only if you only load by autoloading. If you require 'whitespace, you
should have access to the user options. But unless the options you are
interested have custom setter functions (which from what I see is not
the case), you can also just set the default value before calling
`global-whitespace-mode', and it should work just as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: global-whitespace style and activation
[not found] ` <87lesps0xs.fsf@posteo.net-N7L_Kfs----2>
@ 2022-07-19 13:15 ` carlmarcos--- via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-19 13:15 UTC (permalink / raw)
To: Philip Kaludercic
Cc: carlmarcos--- via Users list for the GNU Emacs text editor
Jul 19, 2022, 13:10 by philipk@posteo.net:
> carlmarcos--- via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> Have been somewhat perplexed on setting the style for
>> `global-whitespace-mode`. Looks as if the style has to be set before
>> enabling the mode. Usually one would not have access to the mode
>> variables if the mode is not yet enabled.
>>
>
> Only if you only load by autoloading. If you require 'whitespace, you
> should have access to the user options. But unless the options you are
> interested have custom setter functions (which from what I see is not
> the case), you can also just set the default value before calling
> `global-whitespace-mode', and it should work just as well.
>
What would be the best setup for it? Keep things as I did?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-19 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 12:55 global-whitespace style and activation carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-19 13:10 ` Philip Kaludercic
[not found] ` <87lesps0xs.fsf@posteo.net-N7L_Kfs----2>
2022-07-19 13:15 ` carlmarcos--- via Users list for the GNU Emacs text editor
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.