How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
I would like to have auto-fill-mode turned off for all groups in a specific topic in Gnus. I tried adding this to my Topic Parameters: (message-fill-column nil) after reading the documentation: ,[ C-h v message-fill-column RET ] | message-fill-column is a variable defined in ‘message.el’.

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
Adam writes: > Is The Right Way™ to add a function to a hook instead? > > I just really like configuring behavior using the Topic/Group > Parameters... I have solved it like this now: (add-hook 'message-mode-hook (lambda () (let ((group (or gnus-newsgroup-name

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread yeti
Adam Sjøgren writes: > I would like to have auto-fill-mode turned off for all groups in a > specific topic in Gnus. Doesn't that sound like a job for gnus-posting-styles? -- Take Back Control! -- Mesh The Planet! Do you GNUS too? -- Stop worrying about spam and start to score.

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
yeti writes: > Adam Sjøgren writes: > >> I would like to have auto-fill-mode turned off for all groups in a >> specific topic in Gnus. > > Doesn't that sound like a job for gnus-posting-styles? Sounds intriguing - do you have an example of how? Best regards, Adam -- "Our voodoo-dolls

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread yeti
I don't use topics/groups but https://gnus.org/manual/big-gnus.html#Group-Parameters mentions that groups can have a posting-style parameter, so disabling the fill mode maybe can done like | (posting-style | (eval ...change-the-fill-mode-here... | ) | ) Shouldn't that apply to the whole gro

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
yeti writes: > disabling the fill mode maybe can done like > > | (posting-style > | (eval ...change-the-fill-mode-here... > | ) > | ) > > Shouldn't that apply to the whole group then? You're right, adding this to the Topic Parameters: (posting-style (eval (auto-fill-mode -1))) w

Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread yeti
Adam Sjøgren writes: > works. \o/ -- Take Back Control! -- Mesh The Planet! Do you GNUS too? -- Stop worrying about spam and start to score.