From a4556632b0858b4083e5fbc3530d54f46b4ecdb5 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 1 Oct 2023 15:39:02 +0200 Subject: [PATCH] Remove advice for moving message attachments to the end of buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is configurable since EmacsĀ 29.1. --- init.el | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/init.el b/init.el index c627e28..46f0376 100644 --- a/init.el +++ b/init.el @@ -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