mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-01 16:32:54 +03:00
10 lines
479 B
Plaintext
10 lines
479 B
Plaintext
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
|
|
addhl -group /mail regex <[^@>]+@.*?> 0:string
|
|
addhl -group /mail regex ^>.*?$ 0:comment
|
|
|
|
hook -group mail-highlight global WinSetOption filetype=mail %{ addhl ref mail }
|
|
hook -group mail-highlight global WinSetOption filetype=(?!mail).* %{ rmhl mail }
|