diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2019-03-18 19:56:34 +0100 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2019-03-21 01:06:16 +0100 |
| commit | c0dccdd90dd615cf663d95fd94fbdbdf2a88b165 (patch) | |
| tree | cb48fb1b7fb74e6e3b98a62f6e2768686bb75c98 /rc/filetype/systemd.kak | |
| parent | f87e844244d5ee81e9c1ceb04c354726002ae760 (diff) | |
Add categories in rc/
Closes #2783
Diffstat (limited to 'rc/filetype/systemd.kak')
| -rw-r--r-- | rc/filetype/systemd.kak | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rc/filetype/systemd.kak b/rc/filetype/systemd.kak new file mode 100644 index 00000000..3810d005 --- /dev/null +++ b/rc/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 "#" + } +} |
