Fix exec-path on Windows #1423

Windows uses ; as its PATH separator.
This commit is contained in:
Henrik Lissner 2019-05-21 12:29:42 -04:00
parent 66ddbf981e
commit 0383e504fe
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -511,7 +511,8 @@ to least)."
(when (and (not noninteractive)
(file-readable-p doom-env-file))
(doom-load-env-vars doom-env-file)
(setq exec-path (append (split-string (getenv "PATH") ":")
(setq exec-path (append (split-string (getenv "PATH")
(if IS-WINDOWS ";" ":"))
(list exec-directory))
shell-file-name (or (getenv "SHELL")
shell-file-name))))