Re: Narrow text body when composing/replying to mails
Thanks for your fast reply Sandra. On So, Feb 25 2024 11:28, Sandra Snan wrote > Huh, there is a bug here, apparently, looking at the raw version > of what I sent. It doesn't properly insert the RFC 2646 > line-ending spaces. In fact, it does not work for me either. I commented my lines of code and used your code snippet below. Hence auto-fill-mode was kept on while testing it on my side. >>> Instead, do this: >>> >>> (add-hook 'message-mode-hook >>> (lambda () >>> (use-hard-newlines 3 t))) Maybe there are some settings interfering with the right placement/insertion of RFC2646. Any thoughts on this? -- Jan Detke ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: revisiting Autocrypt in notmuch, MVP
Awesome, and I see you're already upstreaming hooks. But I think you can simplify this because every reply buffer has a hidden "In-Reply-To" header (can be shown with `message-widen-and-recenter`). You should be able to attach a hook to `message-setup-hook`, I think? Ideally you'd use `message-header-hook`, but that doesn't appear to be run by notmuch. So, something like should get you the ID of the message to which we're replying. (save-restriction (message-narrow-to-headers) (mail-header-parse-address-lax (mail-fetch-field "In-Reply-To"))) ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Narrow text body when composing/replying to mails
Huh, there is a bug here, apparently, looking at the raw version of what I sent. It doesn't properly insert the RFC 2646 line-ending spaces. Sandra Snan writes: Sandra Snan writes: Instead, do this: (add-hook 'message-mode-hook (lambda () (use-hard-newlines 3 t))) While keeping auto-fill-mode on, I mean. This sets the format flowed header according to RFC 2646 so that your fills reads as if they were softwrapped for the recipient. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Narrow text body when composing/replying to mails
Sandra Snan writes: Instead, do this: (add-hook 'message-mode-hook (lambda () (use-hard-newlines 3 t))) While keeping auto-fill-mode on, I mean. This sets the format flowed header according to RFC 2646 so that your fills reads as if they were softwrapped for the recipient. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Narrow text body when composing/replying to mails
Jan Detke writes: With that I got an issue where my text body is verry narrow while composing/replying to mails (as you can see). Instead, do this: (add-hook 'message-mode-hook (lambda () (use-hard-newlines 3 t))) ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: revisiting Autocrypt in notmuch, MVP
Steven Allen writes: There's actually a pretty decent autocrypt package[1] for Emacs, only lacking notmuch integration. But writing that based on the mu4e integration should be pretty trivial. [1]: https://git.sr.ht/~pkal/autocrypt/ I've been working on that actually so check out that project's mailing lists for the patches I've been sending. I've been seeing some weird behavior when testing and I wanna iron out all the kinks before we merge it, but patches-to-my-patches in that regard are more than welcome.♥︎ There are some huge differences between notmuch and mu4e with regards to the timing of message access and hooks. Please check the commit history of my patches on pkal's mailing list, or get my dev repo at git clone https://idiomdrottning.org/autocrypt I think my code here is solid and my remaining issues (I've been seeing incompabilities with Delta Chat) are with the autocrypt library and not with my interface code, but, more eyes would be good. Note that since autocrypt aspires to become an ELPA project you need FSF assignment forms to work on it. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Narrow text body when composing/replying to mails
Hello all, I am using notmuch with the emacs frontend.With that I got an issue where my text body is verry narrow while composing/replying to mails (as you can see). To get rid of this, I added the follwoing to my config file: ``` (add-hook! 'notmuch-message-mode-hook #'turn-on-visual-line-mode) (add-hook! 'notmuch-message-mode-hook #'turn-off-auto-fill) ``` But this did not work out for me. Any suggestion here? -- Jan Detke ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org