From 099ad2319f6589bd1288cb8dc2773a263c44f013 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 1 Aug 2018 10:51:10 +0300 Subject: [PATCH] rc systemd: Make sure files are in the `systemd` directory Fixes #2272 --- rc/extra/systemd.kak | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc/extra/systemd.kak b/rc/extra/systemd.kak index c1d5a918..3810d005 100644 --- a/rc/extra/systemd.kak +++ b/rc/extra/systemd.kak @@ -6,4 +6,9 @@ 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 "#" + } }