; Use a better method for the initial value of 'eshell-lexical-binding'

* lisp/eshell/esh-cmd.el (eshell-lexical-binding): Set to the default
top-level value of 'lexical-binding'.
This commit is contained in:
Jim Porter 2026-08-20 22:03:27 -07:00
parent 73599f66e1
commit ad4a639e92

View file

@ -126,7 +126,7 @@ There are several different kinds of commands, however."
"If non-nil, prefer Lisp functions to external commands."
:type 'boolean)
(defcustom eshell-lexical-binding lexical-binding
(defcustom eshell-lexical-binding (eval-when-compile (default-toplevel-value 'lexical-binding))
"If non-nil, use lexical binding when evaluating Eshell forms."
:type 'boolean)