[Emacs] Prefer plaintext in mu4e message viewer

This commit is contained in:
Lucien Cartier-Tilet 2022-01-26 10:05:53 +01:00
parent 58cd252d56
commit 6123dec4e3
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1463,6 +1463,9 @@ configuration for the ~mu4e~ package itself.
`(lambda () (visual-line-mode 1))) `(lambda () (visual-line-mode 1)))
:gfhook ('mu4e-view-mode-hook (mu4e-view-mode--prepare)) :gfhook ('mu4e-view-mode-hook (mu4e-view-mode--prepare))
:config :config
(with-eval-after-load "mm-decode"
(add-to-list 'mm-discouraged-alternatives "text/html")
(add-to-list 'mm-discouraged-alternatives "text-richtext"))
(add-hook 'mu4e-view-mode-hook (lambda () (setq truncate-lines nil))) (add-hook 'mu4e-view-mode-hook (lambda () (setq truncate-lines nil)))
(add-hook 'mu4e-headers-mode-hook (lambda () (setq truncate-lines t))) (add-hook 'mu4e-headers-mode-hook (lambda () (setq truncate-lines t)))