unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Narrow text body when composing/replying to mails
@ 2024-02-25  8:52 Jan Detke
  2024-02-25  9:44 ` Sandra Snan
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Detke @ 2024-02-25  8:52 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Narrow text body when composing/replying to mails
  2024-02-25  8:52 Narrow text body when composing/replying to mails Jan Detke
@ 2024-02-25  9:44 ` Sandra Snan
  2024-02-25  9:46   ` Sandra Snan
  0 siblings, 1 reply; 5+ messages in thread
From: Sandra Snan @ 2024-02-25  9:44 UTC (permalink / raw)
  To: Jan Detke, notmuch

Jan Detke <jandetke@outlook.com> 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)))

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Narrow text body when composing/replying to mails
  2024-02-25  9:44 ` Sandra Snan
@ 2024-02-25  9:46   ` Sandra Snan
  2024-02-25 10:28     ` Sandra Snan
  0 siblings, 1 reply; 5+ messages in thread
From: Sandra Snan @ 2024-02-25  9:46 UTC (permalink / raw)
  To: Jan Detke, notmuch

Sandra Snan <sandra.snan@idiomdrottning.org> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Narrow text body when composing/replying to mails
  2024-02-25  9:46   ` Sandra Snan
@ 2024-02-25 10:28     ` Sandra Snan
  2024-02-25 17:45       ` Jan Detke
  0 siblings, 1 reply; 5+ messages in thread
From: Sandra Snan @ 2024-02-25 10:28 UTC (permalink / raw)
  To: Jan Detke, notmuch

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 <sandra.snan@idiomdrottning.org> writes:

> Sandra Snan <sandra.snan@idiomdrottning.org> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Narrow text body when composing/replying to mails
  2024-02-25 10:28     ` Sandra Snan
@ 2024-02-25 17:45       ` Jan Detke
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Detke @ 2024-02-25 17:45 UTC (permalink / raw)
  To: Sandra Snan; +Cc: notmuch


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1400 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-25 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-25  8:52 Narrow text body when composing/replying to mails Jan Detke
2024-02-25  9:44 ` Sandra Snan
2024-02-25  9:46   ` Sandra Snan
2024-02-25 10:28     ` Sandra Snan
2024-02-25 17:45       ` Jan Detke

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).