From f37b509b8ce3b42dab57371ca3877021c7679b9e Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 27 Jun 2024 01:33:40 +0200 Subject: [PATCH] Support .dir-locals-2.el in `auto-insert-mode` * lisp/autoinsert.el (auto-insert-alist): Use Directory Local Variables skeleton also for ".dir-locals-2.el". (cherry picked from commit a2c3a91f0e3b6a3a22e74ef2dc473c12059e93c9) --- lisp/autoinsert.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 3a87c5610a4..fe909acbe20 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el @@ -166,7 +166,7 @@ If this contains a %s, that will be replaced by the matching rule." (replace-match (capitalize (user-login-name)) t t)) '(end-of-line 1) " <" (progn user-mail-address) ">\n") - (".dir-locals.el" + ((,(rx ".dir-locals" (? "-2") ".el") . "Directory Local Variables") nil ";;; Directory Local Variables -*- no-byte-compile: t; -*-\n" ";;; For more information see (info \"(emacs) Directory Variables\")\n\n" -- 2.39.2