mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-11 04:34:27 +03:00
c0dccdd90d
Closes #2783
15 lines
591 B
Plaintext
15 lines
591 B
Plaintext
# 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 "#"
|
|
}
|
|
}
|