1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-12 16:14:04 +02:00

gnu: emacs: Add lexical binding cookies.

* gnu/packages/emacs.scm (emacs-minimal)[#:phases]<install-c-source>
<install-site-start>: Add “;; -*- lexical-binding: t; -*-” at the top of the
generated files.
* gnu/packages/aux-files/emacs/comp-integrity.el: Likewise.
This commit is contained in:
Liliana Marie Prikler
2026-03-22 16:33:50 +01:00
parent 9492cfa45b
commit 804c8104a3
2 changed files with 3 additions and 0 deletions
@@ -1,3 +1,4 @@
;; -*- lexical-binding: t; -*-
(require 'ert)
(eval-when-compile
+2
View File
@@ -387,6 +387,7 @@
(lambda ()
(display
(string-append
";; -*- lexical-binding: t; -*-\n"
"(setq find-function-C-source-directory \"" dest "\")\n\n"
"(provide 'guix-emacs-c-source)")))))))
(add-after 'install 'install-site-start
@@ -413,6 +414,7 @@
(lambda ()
(display
(string-append
";; -*- lexical-binding: t; -*-\n"
"(when (require 'guix-emacs nil t)\n"
" (guix-emacs-autoload-packages 'no-reload)\n"
" (advice-add 'package-load-all-descriptors"