summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-10-15 13:07:29 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-10-15 13:07:29 +0200
commit08eb639df8d24ef77df896a23972269b676311b7 (patch)
treee58f49523c32d820815a2af12bac2b016201a5c7
parent3187225416c66061b67e89092addc15cad2202b9 (diff)
downloademacs-08eb639df8d24ef77df896a23972269b676311b7.tar.gz
Add no-byte-compile to the ".dir-locals.el" auto-insert template
* lisp/autoinsert.el (auto-insert-alist): Add the no-byte-compile cookie to the ".dir-locals.el" template.
-rw-r--r--lisp/autoinsert.el2
-rw-r--r--lisp/files-x.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index 580f6b3ced2..51d939151ce 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -168,7 +168,7 @@ If this contains a %s, that will be replaced by the matching rule."
(".dir-locals.el"
nil
- ";;; Directory Local Variables\n"
+ ";;; Directory Local Variables -*- no-byte-compile: t; -*-\n"
";;; For more information see (info \"(emacs) Directory Variables\")\n\n"
"(("
'(setq v1 (let (modes)
diff --git a/lisp/files-x.el b/lisp/files-x.el
index f6d5d6cc272..0131d495f27 100644
--- a/lisp/files-x.el
+++ b/lisp/files-x.el
@@ -489,6 +489,8 @@ from the MODE alist ignoring the input argument VALUE."
dir-locals-directory-cache))
;; Insert modified alist of directory-local variables.
+ ;; When changing this, also update the ".dir-locals.el" file for
+ ;; Emacs itself, as well as the template in autoinsert.el.
(insert ";;; Directory Local Variables -*- no-byte-compile: t -*-\n")
(insert ";;; For more information see (info \"(emacs) Directory Variables\")\n\n")
(princ (dir-locals-to-string