aboutsummaryrefslogtreecommitdiff
path: root/modules/mail-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-23 04:10:35 -0500
committerCraig Jennings <c@cjennings.net>2026-05-23 04:10:35 -0500
commit83c6a6d016853cb298605d892fc9e9302cfa151a (patch)
tree67a5e9d56efa22f21a2a96eccb3b984b6b438e0e /modules/mail-config.el
parentd34c9dfcf1623c48357bc579b72ebc0fcb8bacd3 (diff)
downloaddotemacs-83c6a6d016853cb298605d892fc9e9302cfa151a.tar.gz
dotemacs-83c6a6d016853cb298605d892fc9e9302cfa151a.zip
refactor(mail): consolidate compose-buffer kill policy to one home
org-msg only reads message-kill-buffer-on-exit (in org-msg--widen-and-undo) and never sets it, so the duplicate setq in org-msg's :config was redundant. I removed it and kept the single t in the mu4e :config, with a comment noting org-msg honors whatever mu4e leaves in place. No behavior change. Compose buffers still kill on exit.
Diffstat (limited to 'modules/mail-config.el')
-rw-r--r--modules/mail-config.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/mail-config.el b/modules/mail-config.el
index e46ff936..7e8773e3 100644
--- a/modules/mail-config.el
+++ b/modules/mail-config.el
@@ -132,8 +132,9 @@ Prompts user for the action when executing."
(setq message-citation-line-format "On %a %d %b %Y at %R, %f wrote:\n") ;; helps show up properly in Outlook/Gmail threads
(setq message-citation-line-function 'message-insert-formatted-citation-line)
;; Kill the compose buffer on send/exit so compose buffers don't accumulate.
- ;; org-msg (the active composer) sets this to t as well, so the policy holds
- ;; whether or not org-msg is on.
+ ;; Single home for this policy: org-msg only reads this variable (to decide
+ ;; whether to widen-and-undo its edits) and never sets it, so the value set
+ ;; here governs both plain mu4e and org-msg compose buffers.
(setq message-kill-buffer-on-exit t)
(setq mu4e-change-filenames-when-moving t) ;; avoid gmail dup UID issues: https://goo.gl/RTCgVa
(setq mu4e-completing-read-function 'completing-read) ;; use generic completing read, rather than ido
@@ -439,11 +440,6 @@ Prompts user for the action when executing."
;; enforce css usage; default renders too small
(setq org-msg-enforce-css t)
- ;; Kill the compose buffer on exit, matching the mu4e default above, so an
- ;; org-msg HTML draft buffer doesn't linger after the message is sent or
- ;; aborted. org-msg defaults this to nil, so set it explicitly here.
- (setq message-kill-buffer-on-exit t)
-
;; Override just the problematic styles with important tags
(setq org-msg-extra-css
(concat