From 91a15a991eaa406776be5e43363c8a436e4c532b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 9 Apr 2017 22:10:41 -0400 Subject: [PATCH] app/email: comment config & hide modeline in mu4e-view-mode --- modules/app/email/config.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/app/email/config.el b/modules/app/email/config.el index 28cdb3d83..1cdf3f8b9 100644 --- a/modules/app/email/config.el +++ b/modules/app/email/config.el @@ -76,6 +76,9 @@ ;; remove 'lists' column mu4e-headers-fields (assq-delete-all :mailing-list mu4e-headers-fields)) + ;; By default, mark-for-trash deletes the email completely, even from the + ;; server. This fix sends trashed email to the trash folder, instead. Note: + ;; you have to update your mail for them to actually show up in Trash. (setq mu4e-marks (assq-delete-all 'trash mu4e-marks)) (push '(trash :char ("d" . "▼") :prompt "dtrash" @@ -85,6 +88,9 @@ (lambda (docid msg target) (mu4e~proc-move docid (mu4e~mark-check-target target) "-N"))) mu4e-marks) + + ;; mark-as-read doesn't seem to work by default, and seems absent from + ;; `mu4e-marks', so I add it back in. (push '(read :char ("!" . "◻") :prompt "!read" :show-target (lambda (target) "read") @@ -92,9 +98,12 @@ (lambda (docid msg target) (mu4e~proc-move docid nil "+S-N"))) mu4e-marks) + ;; Brighter + no mode-line in message windows (after! doom-themes - (add-hook 'mu4e-view-mode-hook 'doom-buffer-mode)) + (add-hook! 'mu4e-view-mode-hook + '(doom-buffer-mode doom-hide-modeline-mode))) + ;; Wrap text in messages (add-hook! 'mu4e-view-mode-hook (setq-local truncate-lines nil))