From: Stefan Kangas Date: Wed, 26 Jun 2024 23:33:40 +0000 (+0200) Subject: Support .dir-locals-2.el in `auto-insert-mode` X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f37b509b8ce3b42dab57371ca3877021c7679b9e;p=emacs.git 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) --- 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"