Set exec-path/shell-file-name in doom-load-env-vars

And perform file-readable-p check inside doom-load-env-vars
This commit is contained in:
Henrik Lissner 2019-06-18 11:44:50 +02:00
parent 12fa049012
commit ae365272ad
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 16 deletions

View file

@ -56,12 +56,7 @@ Uses the same mechanism as 'bin/doom env reload'."
(sit-for 1))
(unless (file-readable-p doom-env-file)
(error "Failed to generate env file"))
(doom-load-env-vars doom-env-file)
(setq-default
exec-path (append (split-string (getenv "PATH") ":")
(list exec-directory))
shell-file-name (or (getenv "SHELL")
shell-file-name)))
(doom-load-env-vars doom-env-file))
;;;###autoload
(defun doom/reload-font ()