fix(mu4e): duplicate "view in browser" actions

These are already present in newer versions of mu4e. By making them
match, `add-to-list` won't add a duplicate.

Fix: #6328
This commit is contained in:
Henrik Lissner 2024-09-05 04:25:57 -04:00
parent c6479574e6
commit 424b7af45f
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -240,9 +240,9 @@ is non-nil."
(setq-hook! 'mu4e-view-mode-hook truncate-lines nil)
;; Html mails might be better rendered in a browser
(add-to-list 'mu4e-view-actions '("View in browser" . mu4e-action-view-in-browser))
(when (fboundp 'make-xwidget)
(add-to-list 'mu4e-view-actions '("xwidgets view" . mu4e-action-view-in-xwidget)))
(add-to-list 'mu4e-view-actions '("view in browser" . mu4e-action-view-in-browser))
(when (fboundp 'xwidget-webkit-browse-url)
(add-to-list 'mu4e-view-actions '("xview in xwidget" . mu4e-action-view-in-xwidget)))
;; Detect empty subjects, and give users an opotunity to fill something in
(add-hook! 'message-send-hook