Refactor doom env

- Limits process-environment during scraping
- Add `doom-env-executable` and `doom-env-switches` variables
- Announce what commands were run to produce your env var within env var
  file header
This commit is contained in:
Henrik Lissner 2019-04-03 00:08:06 -04:00
parent 34e3985409
commit 700cda370b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 66 additions and 39 deletions

View file

@ -99,7 +99,10 @@ MacOS users).")
Doom was setup, which can cause problems.")
(defvar doom-site-load-path load-path
"The starting load-path, before it is altered by `doom-initialize'.")
"The starting `load-path', before it is altered by `doom-initialize'.")
(defvar doom-site-process-environment process-environment
"The starting `process-environment', before it is altered by `doom-initialize'.")
(defvar doom--last-emacs-file (concat doom-local-dir "emacs-version.el"))
(defvar doom--last-emacs-version nil)