From: "Jorge P. de Morais Neto" <jorge+list@disroot.org>
To: notmuch@notmuchmail.org
Subject: Programmatically set "From", Ispell dictionary and signature based on recipient
Date: Tue, 17 Nov 2020 16:38:24 -0300 [thread overview]
Message-ID: <87h7pnpydr.fsf@disroot.org> (raw)
Hi. I use Notmuch 0.31.2 on Emacs 27.1.50. When I compose mail to a
mailing list, I would like Emacs to automatically set:
1. "From" header to ~"Jorge P. de Morais Neto" <jorge+list@disroot.org>~
2. Ispell dictionary to "en_US"
3. ~message-signature-file~ to "~/.signature--english" (and it should
actually insert the corresponding file as signature)
Is there an easy way to do it, or do I have write Elisp and put it in
some Message mode hook?
Regards
--
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- If an email of mine arrives at your spam box, please notify me.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]
next reply other threads:[~2020-11-17 19:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-17 19:38 Jorge P. de Morais Neto [this message]
2020-11-17 20:54 ` Programmatically set "From", Ispell dictionary and signature based on recipient David Bremner
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7pnpydr.fsf@disroot.org \
--to=jorge+list@disroot.org \
--cc=notmuch@notmuchmail.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.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
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).