mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
refactor: deprecate letenv!
`letenv!` is a layover from the days before `with-environment-variables` (introduced in 28.x), and it remained afterwards because I preferred the shorter name. From v3 and onward, Doom's core will be put on a diet which, among other things, will include culling redundant or superfluous functions/macros like this one.
This commit is contained in:
@@ -38,12 +38,13 @@
|
||||
(setq doom-bin "doom.ps1"))
|
||||
;; Ensure the bin/doom operates with the same environment as this
|
||||
;; running session.
|
||||
(letenv! (("PATH" (string-join exec-path path-separator))
|
||||
("EMACS" (doom-path invocation-directory invocation-name))
|
||||
("EMACSDIR" doom-emacs-dir)
|
||||
("DOOMDIR" doom-user-dir)
|
||||
("DOOMLOCALDIR" doom-local-dir)
|
||||
("DEBUG" (if doom-debug-mode (number-to-string doom-log-level) "")))
|
||||
(with-environment-variables
|
||||
(("PATH" (string-join exec-path path-separator))
|
||||
("EMACS" (doom-path invocation-directory invocation-name))
|
||||
("EMACSDIR" doom-emacs-dir)
|
||||
("DOOMDIR" doom-user-dir)
|
||||
("DOOMLOCALDIR" doom-local-dir)
|
||||
("DEBUG" (if doom-debug-mode (number-to-string doom-log-level) "")))
|
||||
(with-current-buffer
|
||||
(compile (format ,command (expand-file-name doom-bin doom-bin-dir)) t)
|
||||
(let ((w (get-buffer-window (current-buffer))))
|
||||
|
Reference in New Issue
Block a user