mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
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:
@@ -1,3 +1,5 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'package)
|
||||
(package-initialize)
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'package-recipe)
|
||||
(require 'package-build)
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(defmacro mk-subdirs-expr (path)
|
||||
`(setq load-path
|
||||
(delete-dups (append '(,path)
|
||||
|
||||
Reference in New Issue
Block a user