From 133123c058d7e8ab1ad761d86c9f60db201e6e51 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 9 May 2020 16:20:35 -0400 Subject: [PATCH] Don't delete trailing whitespace when composing emails (since trailing whitespace is semantically meaningful for markdown) --- emacs/init.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs/init.org b/emacs/init.org index 0d8319e..8f00ff1 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -3969,7 +3969,12 @@ Then configure it: (let* ((msg (mu4e-message-at-point t))) (if (not msg) (error "No message at point") - (cdar (mu4e-message-field msg :from))))))))) + (cdar (mu4e-message-field msg :from)))))))) + (add-hook 'mu4e-compose-pre-hook + (lambda () + (set + (make-local-variable '*should-delete-trailing-whitespace*) + nil)))) #+end_src Support sending attachments from Dired: