aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2022-10-29 11:52:22 -0400
committerRyan Kavanagh <rak@rak.ac>2022-10-29 11:52:22 -0400
commit078b112a63489dc8d27a4e98defa500ef3e6471a (patch)
tree48d2e665aeed0cc01dee1d41e9d83d68717ec5a2
parentmove message-citation-line-function to right spot it .emacs (diff)
make whitespace-cleanup-mail only apply in message-mode
-rw-r--r--dot_emacs2
1 files changed, 1 insertions, 1 deletions
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))