Subject: [PATCH v2 05/14] services: gitolite-rc-file-compiler: Set mode of the generated file.

From: Tomas Volf <[email-masked]>
Date: Tue, 1 Apr 2025 00:10:11 +0200

Copied over from the official configuration file, this sets a correct major
mode when you visit the generated file.

* gnu/services/version-control.scm (gitolite-rc-file-compiler): Add local
variables.

Change-Id: I8a9d794a1e3c7049ae606165cf939d81b5dbdf6e
---
 gnu/services/version-control.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm
index 9bd17334fe..b93cb9f590 100644
--- a/gnu/services/version-control.scm
+++ b/gnu/services/version-control.scm
@@ -311,7 +311,11 @@ (define-gexp-compiler (gitolite-rc-file-compiler
              ,(if unsafe-pattern
                   (string-append "$UNSAFE_PATT = qr(" unsafe-pattern ");")
                   "")
-             "1;\n"))))
+             "1;\n"
+             "# Local variables:\n"
+             "# mode: perl\n"
+             "# End:\n"
+             "# vim: set syn=perl:\n"))))
 
 (define-record-type* <gitolite-configuration>
   gitolite-configuration make-gitolite-configuration
-- 
2.49.0