diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-08-08 18:18:40 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-08-08 18:18:40 +0300 |
| commit | aa75487ae64a70b580c3d8a338adc75e1e8a4b3f (patch) | |
| tree | 744389ee794210ed2655bdffeb5002339d171b4c | |
| parent | 16a2cffc1131a1d9637ac3d10edfa983bfb366a8 (diff) | |
mu4e-view: Enable mu4e-action-view-in-browser by default
It's useful enough to enable by default.
| -rw-r--r-- | mu4e/mu4e-view-common.el | 2 | ||||
| -rw-r--r-- | mu4e/mu4e-view-gnus.el | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mu4e/mu4e-view-common.el b/mu4e/mu4e-view-common.el index 1d70987..e4880d5 100644 --- a/mu4e/mu4e-view-common.el +++ b/mu4e/mu4e-view-common.el @@ -69,7 +69,7 @@ details." (defcustom mu4e-view-actions '( ("capture message" . mu4e-action-capture-message) - ("view as pdf" . mu4e-action-view-as-pdf) + ("view in browser" . mu4e-action-view-in-browser) ("show this thread" . mu4e-action-show-thread)) "List of actions to perform on messages in view mode. The actions are cons-cells of the form: diff --git a/mu4e/mu4e-view-gnus.el b/mu4e/mu4e-view-gnus.el index 125ac76..3901074 100644 --- a/mu4e/mu4e-view-gnus.el +++ b/mu4e/mu4e-view-gnus.el @@ -73,8 +73,10 @@ etc." (buffer-substring-no-properties (point-min) (point-max)))) (defun mu4e-action-view-in-browser (msg) - "Show current message MSG in browser, if it contains an html body." -;; (with-temp-buffer + "Show current MSG in browser if it includes an HTML-part. +The variables `browse-url-browser-function', +`browse-url-handlers', and `browse-url-default-handlers' +determine which browser function to use." (with-temp-buffer (insert-file-contents-literally (mu4e-message-field msg :path) nil nil nil t) |
