mu4e-view: Enable mu4e-action-view-in-browser by default
It's useful enough to enable by default.
This commit is contained in:
@ -69,7 +69,7 @@ details."
|
|||||||
|
|
||||||
(defcustom mu4e-view-actions
|
(defcustom mu4e-view-actions
|
||||||
'( ("capture message" . mu4e-action-capture-message)
|
'( ("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))
|
("show this thread" . mu4e-action-show-thread))
|
||||||
"List of actions to perform on messages in view mode.
|
"List of actions to perform on messages in view mode.
|
||||||
The actions are cons-cells of the form:
|
The actions are cons-cells of the form:
|
||||||
|
|||||||
@ -73,8 +73,10 @@ etc."
|
|||||||
(buffer-substring-no-properties (point-min) (point-max))))
|
(buffer-substring-no-properties (point-min) (point-max))))
|
||||||
|
|
||||||
(defun mu4e-action-view-in-browser (msg)
|
(defun mu4e-action-view-in-browser (msg)
|
||||||
"Show current message MSG in browser, if it contains an html body."
|
"Show current MSG in browser if it includes an HTML-part.
|
||||||
;; (with-temp-buffer
|
The variables `browse-url-browser-function',
|
||||||
|
`browse-url-handlers', and `browse-url-default-handlers'
|
||||||
|
determine which browser function to use."
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents-literally
|
(insert-file-contents-literally
|
||||||
(mu4e-message-field msg :path) nil nil nil t)
|
(mu4e-message-field msg :path) nil nil nil t)
|
||||||
|
|||||||
Reference in New Issue
Block a user