home/rc/mime.kak

6 lines
126 B
Plaintext
Raw Normal View History

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