Browse Source

Fix gopath

main
parent
commit
8a85e38ceb
  1. 2
      README.org
  2. 2
      init.el

2
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~. 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 #+begin_src emacs-lisp
(setenv "GOPATH" "$HOME/.go/")
(setenv "GOPATH" (concat (getenv "HOME") "/.go/"))
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp

2
init.el

@ -446,7 +446,7 @@
(dap-python-executable "python3") ;; Same as above. (dap-python-executable "python3") ;; Same as above.
(dap-python-debugger 'debugpy)) (dap-python-debugger 'debugpy))
(setenv "GOPATH" "$HOME/.go/")
(setenv "GOPATH" (concat (getenv "HOME") "/.go/"))
(use-package go-mode (use-package go-mode
:hook (go-mode . lsp)) :hook (go-mode . lsp))

Loading…
Cancel
Save