From 8a85e38ceb08fb60df670d4d095e6744bcbf9ad3 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sun, 31 Jan 2021 14:43:14 -0500 Subject: [PATCH] Fix gopath --- README.org | 2 +- init.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 7b6f341..2ed3ec2 100644 --- a/README.org +++ b/README.org @@ -938,7 +938,7 @@ GO111MODULE=on go get golang.org/x/tools/gopls@latest Set the ~GOPATH~ environment variable prior to loading, this allows us to change the default value of ~$HOME/go~ to ~$HOME.go~. #+begin_src emacs-lisp -(setenv "GOPATH" "$HOME/.go/") +(setenv "GOPATH" (concat (getenv "HOME") "/.go/")) #+end_src #+begin_src emacs-lisp diff --git a/init.el b/init.el index 1dd9588..914e9e0 100644 --- a/init.el +++ b/init.el @@ -446,7 +446,7 @@ (dap-python-executable "python3") ;; Same as above. (dap-python-debugger 'debugpy)) -(setenv "GOPATH" "$HOME/.go/") +(setenv "GOPATH" (concat (getenv "HOME") "/.go/")) (use-package go-mode :hook (go-mode . lsp))