From a7bdf6825afe94708bea657293738da2f2063758 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 15 Aug 2019 18:42:26 -0400 Subject: [PATCH] Set default exec-path & shell-file-name In case doom-load-envvars-file is called when these vars have local bindings. --- core/core.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core.el b/core/core.el index 30dd31222..1038233c2 100644 --- a/core/core.el +++ b/core/core.el @@ -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)