mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-26 16:41:04 -05:00
Use symbol plists instead of internal variables
More in line with Emacs' built-in practice of storing a variable's standard-value in a symbol property of the same name, with the added benefit of less global state.
This commit is contained in:
@@ -123,7 +123,7 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in
|
||||
(let ((blacklist (remq nil (append blacklist doom-env-blacklist)))
|
||||
(whitelist (remq nil (append whitelist doom-env-whitelist))))
|
||||
(insert "(")
|
||||
(dolist (env doom--initial-process-environment)
|
||||
(dolist (env (get 'process-environment 'initial-value))
|
||||
(catch 'skip
|
||||
(let* ((var (car (split-string env "=")))
|
||||
(pred (doom-rpartial #'string-match-p var)))
|
||||
|
Reference in New Issue
Block a user