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:
parent
d298a8e71c
commit
a7bdf6825a
1 changed files with 6 additions and 5 deletions
11
core/core.el
11
core/core.el
|
@ -422,11 +422,12 @@ in interactive sessions, nil otherwise (but logs a warning)."
|
||||||
(line-beginning-position))
|
(line-beginning-position))
|
||||||
(point-max))))))
|
(point-max))))))
|
||||||
(setenv var value)))))
|
(setenv var value)))))
|
||||||
(setq exec-path (append (split-string (getenv "PATH")
|
(setq-default
|
||||||
(if IS-WINDOWS ";" ":"))
|
exec-path (append (split-string (getenv "PATH")
|
||||||
(list exec-directory))
|
(if IS-WINDOWS ";" ":"))
|
||||||
shell-file-name (or (getenv "SHELL")
|
(list exec-directory))
|
||||||
shell-file-name))
|
shell-file-name (or (getenv "SHELL")
|
||||||
|
shell-file-name))
|
||||||
t))
|
t))
|
||||||
|
|
||||||
(defun doom-initialize (&optional force-p)
|
(defun doom-initialize (&optional force-p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue