From 078b112a63489dc8d27a4e98defa500ef3e6471a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sat, 29 Oct 2022 11:52:22 -0400 Subject: make whitespace-cleanup-mail only apply in message-mode --- dot_emacs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dot_emacs') diff --git a/dot_emacs b/dot_emacs index e5c5a2c..e6f222f 100644 --- a/dot_emacs +++ b/dot_emacs @@ -524,7 +524,7 @@ Otherwise split the current paragraph into one sentence per line." (insert "-- "))))))) :hook ((message-mode . (lambda () (remove-hook 'before-save-hook 'whitespace-cleanup t))) - (before-save . whitespace-cleanup-mail)) + (message-mode . (lambda () (add-hook 'before-save-hook 'whitespace-cleanup-mail nil t)))) :custom (message-citation-line-function 'message-insert-formatted-citation-line) (message-send-mail-function 'message-send-mail-with-sendmail)) -- cgit v1.2.3