From ab051c8b352c69491909961bd022597cdcb39818 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 10 Feb 2021 21:00:56 +0100 Subject: [PATCH] [Emacs] Add email view with Xwidget webkit browser --- org/config/emacs.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index 5adec5c..a3b2431 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -4178,6 +4178,19 @@ signature to emails to the hook called when creating a new email. (add-hook 'mu4e-compose-mode-hook 'mml-secure-message-sign-pgpmime) #+END_SRC +Lastly, some emails are better displayed in a browser than in Emacs. My Emacs +build has the webkit browser enabled, so I’ll add an option to open with it +emails. +#+BEGIN_SRC emacs-lisp + (defun phundrak/mu4e-view-in-browser (msg) + (xwidget-webkit-browse-url (concat "file://" + (mu4e~write-body-to-html msg)))) + + (add-to-list 'mu4e-view-actions + '("Xwidget Webkit Browser" . phundrak/mu4e-view-in-browser) + t) +#+END_SRC + *** Visual Configuration :PROPERTIES: :CUSTOM_ID: User-Configuration-Mu4e-Visual-Configuration-34f56f7e