diff options
Diffstat (limited to 'autoload/filetype/systemd.kak')
-rw-r--r-- | autoload/filetype/systemd.kak | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/autoload/filetype/systemd.kak b/autoload/filetype/systemd.kak new file mode 100644 index 0000000..3810d00 --- /dev/null +++ b/autoload/filetype/systemd.kak @@ -0,0 +1,14 @@ +# https://freedesktop.org/wiki/Software/systemd/ +# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + +# Detection +# ‾‾‾‾‾‾‾‾‾ + +hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{ + set-option buffer filetype ini + + # NOTE: INI files define the commenting character to be `;`, which won't work in `systemd` files + hook -once buffer BufSetOption comment_line=.+ %{ + set-option buffer comment_line "#" + } +} |