1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

match filetype for eml extension

stolen from #878
This commit is contained in:
Martin Chaine 2016-12-06 17:53:12 +01:00
parent b64bcf7b3e
commit 74432ac8f2

View File

@ -1,4 +1,10 @@
hook global BufSetOption mimetype=message/rfc822 %{ set buffer filetype mail }
hook global BufCreate .+\.eml %{
set buffer filetype mail
}
hook global BufSetOption mimetype=message/rfc822 %{
set buffer filetype mail
}
addhl -group / group mail
addhl -group /mail regex ^(From|To|Cc|Bcc|Subject|Reply-To|In-Reply-To):([^\n]*(?:\n\h+[^\n]+)*)$ 1:keyword 2:attribute