From b64bcf7b3e09cd09d5ec08b2f7a3d847b936e3eb Mon Sep 17 00:00:00 2001 From: Martin Chaine Date: Tue, 6 Dec 2016 14:46:25 +0100 Subject: [PATCH] better filetype detection http://asciidoctor.org/docs/asciidoc-recommended-practices/#document-extension --- rc/core/asciidoc.kak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/core/asciidoc.kak b/rc/core/asciidoc.kak index a7bb1539..308d211f 100644 --- a/rc/core/asciidoc.kak +++ b/rc/core/asciidoc.kak @@ -4,7 +4,9 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*\.asciidoc %{ set buffer filetype asciidoc } +hook global BufCreate .+\.(a(scii)?doc|asc) %{ + set buffer filetype asciidoc +} # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾