Re: Mutt, Emacs and message-mode

Robert Jäschke via Mutt-users <[email protected]> Tue, 9 Dec 2025 08:46:33 +0100
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
Dear Sébastien,

Am 08.12.2025 schrieb Sébastien Hinderer:
> To know whether it's in the headers or in the body, Emacs inserts a
> separator between headers and body which looks like this:
> 
> --text follows this line--
> 
> When the e-mails are forged by Emacs itself, it deals with adding this
> line in the buffer before the edition and removing it just before the
> message gets sent. When used as an external editor, though, things are a
> bit different.
> 
> So to add the line I added this to my Emacs configuration:

I solved this with the following line in my Emacs configuration:

(setq mail-header-separator "")

Maybe this works for you as well?

I also have this:

;; move cursor after header lines
(add-hook 'message-mode-hook 'forward-paragraph)

Which I find very useful.


Best regards,
Robert
smime.p7s (application/x-pkcs7-signature, 5.9 KB) - not displayed