Subject: [PATCH] Add lexical-binding cookie to savehist template

From: Michael Krasnyk <[email-masked]>
Date: Tue, 8 Apr 2025 22:22:45 +0200

---
 lisp/savehist.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/savehist.el b/lisp/savehist.el
index 2a5ffb8c..29a5f578 100644
--- a/lisp/savehist.el
+++ b/lisp/savehist.el
@@ -242,7 +242,7 @@ savehist-save
     (insert
      (format-message
       (concat
-       ";; -*- mode: emacs-lisp; coding: %s -*-\n"
+       ";; -*- mode: emacs-lisp; lexical-binding: t; coding: %s -*-\n"
        ";; Minibuffer history file, automatically generated by `savehist'.\n"
        "\n")
       savehist-coding-system))
-- 
2.49.0