Merge remote-tracking branch 'Delapouite/svg'

This commit is contained in:
Maxime Coste 2017-06-03 14:44:55 +01:00
commit 5b66be26f6

View File

@ -3,6 +3,7 @@ hook global BufOpenFile .* %{ %sh{
mime=$(file -b --mime-type "${kak_buffile}")
case "${mime}" in
application/*+xml) filetype="xml" ;;
image/*+xml) filetype="xml" ;; #SVG
message/rfc822) filetype="mail" ;;
text/x-shellscript) filetype="sh" ;;
text/x-*) filetype="${mime#text/x-}" ;;