From 3477bb921a59b0493d2a443c22d86e7b026f00b4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 12 Jun 2019 16:16:08 -0700 Subject: [emacs] another try to load correctly GOPATH --- emacs.d/custom/fcuny-hygiene.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'emacs.d') diff --git a/emacs.d/custom/fcuny-hygiene.el b/emacs.d/custom/fcuny-hygiene.el index 2d74c82..1ef135f 100644 --- a/emacs.d/custom/fcuny-hygiene.el +++ b/emacs.d/custom/fcuny-hygiene.el @@ -7,8 +7,9 @@ (use-package exec-path-from-shell :ensure t - :if (memq window-system '(mac ns)) - :config - (exec-path-from-shell-initialize)) + :init (exec-path-from-shell-initialize) + (when (memq window-system '(mac ns)) + (exec-path-from-shell-initialize)) + (exec-path-from-shell-copy-env "GOPATH")) (provide 'fcuny-hygiene) -- cgit 1.4.1