app/email: comment config & hide modeline in mu4e-view-mode

This commit is contained in:
Henrik Lissner 2017-04-09 22:10:41 -04:00
parent 3506602a4b
commit 91a15a991e

View file

@ -76,6 +76,9 @@
;; remove 'lists' column ;; remove 'lists' column
mu4e-headers-fields (assq-delete-all :mailing-list mu4e-headers-fields)) 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)) (setq mu4e-marks (assq-delete-all 'trash mu4e-marks))
(push '(trash :char ("d" . "") (push '(trash :char ("d" . "")
:prompt "dtrash" :prompt "dtrash"
@ -85,6 +88,9 @@
(lambda (docid msg target) (lambda (docid msg target)
(mu4e~proc-move docid (mu4e~mark-check-target target) "-N"))) (mu4e~proc-move docid (mu4e~mark-check-target target) "-N")))
mu4e-marks) 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 ("!" . "") (push '(read :char ("!" . "")
:prompt "!read" :prompt "!read"
:show-target (lambda (target) "read") :show-target (lambda (target) "read")
@ -92,9 +98,12 @@
(lambda (docid msg target) (mu4e~proc-move docid nil "+S-N"))) (lambda (docid msg target) (mu4e~proc-move docid nil "+S-N")))
mu4e-marks) mu4e-marks)
;; Brighter + no mode-line in message windows
(after! doom-themes (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 (add-hook! 'mu4e-view-mode-hook
(setq-local truncate-lines nil)) (setq-local truncate-lines nil))