kakoune/rc/base/mime.kak
2016-09-09 12:04:55 +01:00

6 lines
128 B
Plaintext

decl str mimetype "text/plain"
hook global BufOpen .* %{
set buffer mimetype %sh{file -b --mime-type "${kak_buffile}" }
}