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".
This commit is contained in:
Stefan Kangas
2024-06-27 01:33:40 +02:00
parent 78951610a6
commit a2c3a91f0e

View 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"