Remove advice for moving message attachments to the end of buffer

This is configurable since Emacs 29.1.
This commit is contained in:
Daniel - 2023-10-01 15:39:02 +02:00
parent cfdd235f94
commit a4556632b0
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 1 additions and 14 deletions

15
init.el
View File

@ -1815,20 +1815,7 @@ point to the beginning of buffer first."
;; MIME creation; signing, and encryption
(use-package mml
:config (progn
;; Move to end of message buffer before attaching a file
;; http://mbork.pl/2015-11-28_Fixing_mml-attach-file_using_advice
(define-advice mml-attach-file (:around
(orig-fun &rest args)
go-to-eob)
"Go to the end of buffer before attaching files."
(save-excursion
(save-restriction
(widen)
(goto-char (point-max))
(apply orig-fun args))))))
(setq mml-attach-file-at-the-end t)
(use-package mm-encode
:init (setq mm-encrypt-option nil