From: Paul Roberts Date: Thu, 1 May 2014 22:57:53 +0000 (-0500) Subject: vim: make the html handler configurable X-Git-Tag: 0.18_rc1~4 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=468deca60c062b6b3085ff1de41647f41cd6abd1 vim: make the html handler configurable Signed-off-by: Felipe Contreras --- 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