diff options
author | Paul Roberts <pmr@stelo.org.uk> | 2014-05-01 17:57:53 -0500 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-05-03 05:59:58 +0900 |
commit | 468deca60c062b6b3085ff1de41647f41cd6abd1 (patch) | |
tree | dd814c2a5286f4a2aec3c75c409cfefb1fe60ca5 /vim/notmuch.vim | |
parent | 2fee62fd1fcaed5c9ec46daa4f24b33a2f310e83 (diff) |
vim: make the html handler configurable
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'vim/notmuch.vim')
-rw-r--r-- | vim/notmuch.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 25a16e9a..0cb94f6c 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -919,7 +919,8 @@ ruby << EOF if mime_type != "text/html" text = decoded else - IO.popen("elinks --dump", "w+") do |pipe| + IO.popen(VIM::evaluate('exists("g:notmuch_html_converter") ? ' + + 'g:notmuch_html_converter : "elinks --dump"'), "w+") do |pipe| pipe.write(decode_body) pipe.close_write text = pipe.read |