rc: Highlight systemd files in a dedicated script

This commit is contained in:
Frank LENORMAND 2018-07-24 11:28:09 +03:00
parent 5f825cf0f5
commit 64c7f8c564
2 changed files with 10 additions and 1 deletions

View File

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

9
rc/extra/systemd.kak Normal file
View File

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