From 97478ace21206e9050dbcc85e975d13ddc66b0aa Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 30 Oct 2017 20:05:54 +0100 Subject: [PATCH] [Init] Only read environment variables when not on Windows --- init.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/init.el b/init.el index d21aefd..00d129e 100644 --- a/init.el +++ b/init.el @@ -262,15 +262,16 @@ _h_ _l_ _o_k _y_ank ;; Environment Variables - (ignore-errors - (exec-path-from-shell-copy-envs '("SSH_AUTH_SOCK" - "SSH_AGENT_PID" - "PATH" - "TEXMFHOME" - "PERL5LIB" - "PERL_LOCAL_LIB_ROOT" - "PERL_MB_OPT" - "PERL_MM_OPT"))) + (when (memq system-type '(windows-nt cygwin)) + (ignore-errors + (exec-path-from-shell-copy-envs '("SSH_AUTH_SOCK" + "SSH_AGENT_PID" + "PATH" + "TEXMFHOME" + "PERL5LIB" + "PERL_LOCAL_LIB_ROOT" + "PERL_MB_OPT" + "PERL_MM_OPT")))) ;; Fixes