2018-07-24 10:28:09 +02:00
|
|
|
# https://freedesktop.org/wiki/Software/systemd/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
2018-08-01 09:51:10 +02:00
|
|
|
hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{
|
2018-07-24 10:28:09 +02:00
|
|
|
set-option buffer filetype ini
|
2018-08-01 09:51:10 +02:00
|
|
|
|
|
|
|
# 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 "#"
|
|
|
|
}
|
2018-07-24 10:28:09 +02:00
|
|
|
}
|