Set default exec-path & shell-file-name

In case doom-load-envvars-file is called when these vars have local
bindings.
This commit is contained in:
Henrik Lissner 2019-08-15 18:42:26 -04:00
parent d298a8e71c
commit a7bdf6825a
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -422,11 +422,12 @@ in interactive sessions, nil otherwise (but logs a warning)."
(line-beginning-position))
(point-max))))))
(setenv var value)))))
(setq exec-path (append (split-string (getenv "PATH")
(if IS-WINDOWS ";" ":"))
(list exec-directory))
shell-file-name (or (getenv "SHELL")
shell-file-name))
(setq-default
exec-path (append (split-string (getenv "PATH")
(if IS-WINDOWS ";" ":"))
(list exec-directory))
shell-file-name (or (getenv "SHELL")
shell-file-name))
t))
(defun doom-initialize (&optional force-p)