Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: info-gnus-english@gnu.org
Subject: Re: How to turn off auto-fill-mode from Topic Parameters?
Date: Sat, 10 Jun 2023 15:02:08 +0200	[thread overview]
Message-ID: <87bkhna2sv.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87sfaza539.fsf@tullinup.koldfront.dk>

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 "")))
                                   (when (string-match-p "illuminant:fediverse" group)
                                     (auto-fill-mode -1)))))

inspired by "3.7 Various Message Variables" in the manual,
https://www.gnu.org/software/emacs/manual/html_node/message/Various-Message-Variables.html

But I'd still prefer to use Topic Parameters.


  Best regards,

    Adam

-- 
 "But I wake up quick                                       Adam Sjøgren
  And I wake up sick"                                  asjo@koldfront.dk



  reply	other threads:[~2023-06-10 13:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10 12:12 Adam Sjøgren
2023-06-10 13:02 ` Adam Sjøgren [this message]
2023-06-10 21:51 ` yeti
2023-06-10 22:11   ` Adam Sjøgren
2023-06-10 22:48     ` yeti
2023-06-10 23:01       ` Adam Sjøgren
2023-06-10 23:07         ` yeti

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=87bkhna2sv.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=info-gnus-english@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 NNTP newsgroup(s).