From 2acdafa3251de0da4235a16c87b41aa5d4731b6b Mon Sep 17 00:00:00 2001 From: Delapouite Date: Fri, 2 Jun 2017 15:43:51 +0200 Subject: [PATCH] Add SVG detection as xml in file.kak --- rc/base/file.kak | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/base/file.kak b/rc/base/file.kak index 934b0659..770db29f 100644 --- a/rc/base/file.kak +++ b/rc/base/file.kak @@ -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-}" ;;