]> git.eshelyaron.com Git - emacs.git/commitdiff
Support .dir-locals-2.el in `auto-insert-mode`
authorStefan Kangas <stefankangas@gmail.com>
Wed, 26 Jun 2024 23:33:40 +0000 (01:33 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 05:45:51 +0000 (07:45 +0200)
* 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

index 3a87c5610a41f7b25871d5cbddd2916441e9d986..fe909acbe20fe891890c3aa64c37708928db9590 100644 (file)
@@ -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"