]> git.armaanb.net Git - config.org.git/commitdiff
Use Gnus to display mu4e emails
authorArmaan Bhojwani <me@armaanb.net>
Mon, 17 May 2021 02:24:00 +0000 (22:24 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 17 May 2021 02:24:00 +0000 (22:24 -0400)
config.org

index 479b06b3e4aff6fa458cc9de629d8f98fe3b802d..46059f8e3bd86f316f5b9960dfd1dd68933a72c0 100644 (file)
@@ -356,6 +356,7 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
           message-citation-line-function 'message-insert-formatted-citation-line
           mu4e-completing-read-function 'ivy-completing-read
           mu4e-confirm-quit nil
+          mu4e-view-use-gnus t
           mail-user-agent 'mu4e-user-agent
           mu4e-contexts
           `( ,(make-mu4e-context
@@ -396,6 +397,13 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
     :hook ((mu4e-compose-mode . flyspell-mode)
            (mu4e-compose-mode . auto-fill-mode)
            (mu4e-view-mode-hook . turn-on-visual-line-mode)))
+
+#+end_src
+Discourage Gnus from displaying HTML emails
+#+begin_src emacs-lisp
+  (with-eval-after-load "mm-decode"
+    (add-to-list 'mm-discouraged-alternatives "text/html")
+    (add-to-list 'mm-discouraged-alternatives "text/richtext"))
 #+end_src
 ** Default browser
 Set EWW as default browser except for videos.