mirror of https://github.com/djcb/mu.git
Merge pull request #1198 from c-nixon/master
mu4e: Only require html2text if it will be used
This commit is contained in:
commit
eebe1c4c66
|
@ -31,12 +31,13 @@
|
||||||
(require 'mu4e-utils)
|
(require 'mu4e-utils)
|
||||||
|
|
||||||
(require 'cl)
|
(require 'cl)
|
||||||
(require 'html2text)
|
|
||||||
(require 'flow-fill)
|
(require 'flow-fill)
|
||||||
|
|
||||||
|
|
||||||
(defcustom mu4e-html2text-command
|
(defcustom mu4e-html2text-command
|
||||||
(if (fboundp 'shr-insert-document) 'mu4e-shr2text 'html2text)
|
(if (fboundp 'shr-insert-document)
|
||||||
|
'mu4e-shr2text
|
||||||
|
(progn (require 'html2text) 'html2text))
|
||||||
|
|
||||||
"Either a shell command or a function that converts from html to plain text.
|
"Either a shell command or a function that converts from html to plain text.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue