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 +}