mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 04:24:48 +03:00
Add SVG detection as xml in file.kak
This commit is contained in:
parent
1d74e1edaf
commit
2acdafa325
@ -3,6 +3,7 @@ hook global BufOpenFile .* %{ %sh{
|
|||||||
mime=$(file -b --mime-type "${kak_buffile}")
|
mime=$(file -b --mime-type "${kak_buffile}")
|
||||||
case "${mime}" in
|
case "${mime}" in
|
||||||
application/*+xml) filetype="xml" ;;
|
application/*+xml) filetype="xml" ;;
|
||||||
|
image/*+xml) filetype="xml" ;; #SVG
|
||||||
message/rfc822) filetype="mail" ;;
|
message/rfc822) filetype="mail" ;;
|
||||||
text/x-shellscript) filetype="sh" ;;
|
text/x-shellscript) filetype="sh" ;;
|
||||||
text/x-*) filetype="${mime#text/x-}" ;;
|
text/x-*) filetype="${mime#text/x-}" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user