1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

Add lexical cookie to new init files

* lisp/cus-edit.el (custom-save-all):
Add lexical cookie if the file is empty.
This commit is contained in:
Mattias Engdegård 2024-05-02 13:34:22 +02:00
parent 59c18389bd
commit 2f5c9b3116

View File

@ -4971,6 +4971,8 @@ if only the first line of the docstring is shown."))
;; readably. (Bug#52554)
(print-escape-control-characters t))
(atomic-change-group
(when (eobp)
(insert ";;; -*- lexical-binding: t -*-\n"))
(custom-save-variables)
(custom-save-faces)
(custom-save-icons)))