From 64c7f8c56404739fcdc3ee2a10e3dab8c149b524 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 24 Jul 2018 11:28:09 +0300 Subject: [PATCH] rc: Highlight `systemd` files in a dedicated script --- rc/base/ini.kak | 2 +- rc/extra/systemd.kak | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 rc/extra/systemd.kak diff --git a/rc/base/ini.kak b/rc/base/ini.kak index 53b8203c..383bf70e 100644 --- a/rc/base/ini.kak +++ b/rc/base/ini.kak @@ -1,4 +1,4 @@ -hook global BufCreate .*\.(repo|service|timer|target|socket|ini|cfg|properties) %{ +hook global BufCreate .+\.(repo|ini|cfg|properties) %{ set-option buffer filetype ini } diff --git a/rc/extra/systemd.kak b/rc/extra/systemd.kak new file mode 100644 index 00000000..6fce9f16 --- /dev/null +++ b/rc/extra/systemd.kak @@ -0,0 +1,9 @@ +# https://freedesktop.org/wiki/Software/systemd/ +# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + +# Detection +# ‾‾‾‾‾‾‾‾‾ + +hook global BufCreate .+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{ + set-option buffer filetype ini +}