emacs: enable lexical-binding in some files to fix warnings

Emacs 31 introduces warnings like this:

  Warning (files): Missing `lexical-binding' cookie in "/nix/store/hash-elpa2nix.el".
  You can add one with `M-x elisp-enable-lexical-binding RET'.
This commit is contained in:
Lin Jian
2026-09-11 16:22:21 +08:00
parent 8ce4ef6cb6
commit 325ee6c0db
3 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
;; -*- lexical-binding: t; -*-
(require 'package)
(package-initialize)

View File

@@ -1,3 +1,5 @@
;; -*- lexical-binding: t; -*-
(require 'package-recipe)
(require 'package-build)

View File

@@ -1,3 +1,5 @@
;; -*- lexical-binding: t; -*-
(defmacro mk-subdirs-expr (path)
`(setq load-path
(delete-dups (append '(,path)