systemd.kak (591B)
1 # https://freedesktop.org/wiki/Software/systemd/ 2 # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ 3 4 # Detection 5 # ‾‾‾‾‾‾‾‾‾ 6 7 hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{ 8 set-option buffer filetype ini 9 10 # NOTE: INI files define the commenting character to be `;`, which won't work in `systemd` files 11 hook -once buffer BufSetOption comment_line=.+ %{ 12 set-option buffer comment_line "#" 13 } 14 }