From 98b37194997a43bbb7de4354a38f490050ea5df4 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 25 Feb 2024 10:14:11 -0600 Subject: [PATCH] mu4e compose improvements --- user/app/doom-emacs/config.el | 9 ++++++--- user/app/doom-emacs/doom.org | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 470b5f9..2aa85ce 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -1338,14 +1338,17 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)." ;; )) ;;(mu4e-context-switch t "example1") - (org-msg-mode 0) - ;; https://emacs.stackexchange.com/questions/3061/how-to-stop-mu4e-from-inserting-line-breaks (defun no-auto-fill () "Turn off auto-fill-mode." (auto-fill-mode -1)) - (add-hook 'mu4e-compose-mode-hook #'no-auto-fill) + (defun no-org-msg-mode () + "Disable org-msg-mode since it doesn't respect multiline emails" + (org-msg-mode 0)) + + (add-hook 'mu4e-compose-mode-hook #'no-auto-fill) + (add-hook 'mu4e-compose-pre-hook #'no-org-msg-mode) ) ;; TODO fix my make-mu4e-context wrapper diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 0e3cc19..9d8e3a0 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -1561,14 +1561,17 @@ I don't have this active right now since it's kinda weird with pgtk... ;; )) ;;(mu4e-context-switch t "example1") - (org-msg-mode 0) - ;; https://emacs.stackexchange.com/questions/3061/how-to-stop-mu4e-from-inserting-line-breaks (defun no-auto-fill () "Turn off auto-fill-mode." (auto-fill-mode -1)) - (add-hook 'mu4e-compose-mode-hook #'no-auto-fill) + (defun no-org-msg-mode () + "Disable org-msg-mode since it doesn't respect multiline emails" + (org-msg-mode 0)) + + (add-hook 'mu4e-compose-mode-hook #'no-auto-fill) + (add-hook 'mu4e-compose-pre-hook #'no-org-msg-mode) ) ;; TODO fix my make-mu4e-context wrapper