mu4e: Enable debug and sync sent mail in hook

master
Pierre Neidhardt 2018-07-08 17:58:51 +02:00
parent f6cb5d8766
commit 7a9ee14f29
1 changed files with 8 additions and 1 deletions

View File

@ -279,6 +279,7 @@
;; REVIEW: https://github.com/djcb/mu/issues/1258
(when (require 'mu4e-conversation nil t)
(global-mu4e-conversation-mode)
(setq mu4e-debug t)
(setq mu4e-headers-show-threads nil
mu4e-headers-include-related nil)
;; For testing purposes:
@ -286,7 +287,13 @@
;; (set-face-background mu4e-conversation-sender-2 "#553333")
;; (set-face-background mu4e-conversation-sender-3 "#333355")
;; (set-face-background mu4e-conversation-sender-4 "#888855")
)
(setq mu4e-conversation-print-function 'mu4e-conversation-print-tree)
;; (setq mu4e-conversation-print-function 'mu4e-conversation-print-linear)
(add-hook
'mu4e-conversation-after-send-hook
(lambda ()
(let ((mu4e-get-mail-command "mbsync ambrevar-sent peneidhardt-sent"))
(mu4e-update-mail-and-index 'run-in-background)))))
(require 'init-mu4e))
(autoload 'ambrevar/mu4e-headers "mu4e")