From 74432ac8f2336d557a60485c29b95adbe3a5345e Mon Sep 17 00:00:00 2001 From: Martin Chaine Date: Tue, 6 Dec 2016 17:53:12 +0100 Subject: [PATCH] match filetype for eml extension stolen from #878 --- rc/base/mail.kak | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rc/base/mail.kak b/rc/base/mail.kak index b5d99f8c..9eb3894d 100644 --- a/rc/base/mail.kak +++ b/rc/base/mail.kak @@ -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