[Init] Only read environment variables when not on Windows

This commit is contained in:
Daniel - 2017-10-30 20:05:54 +01:00
parent 2ef42d6412
commit 97478ace21
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 10 additions and 9 deletions

19
init.el
View File

@ -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