mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Add Go lang environment setup
This commit is contained in:
1
init.el
1
init.el
@@ -31,6 +31,7 @@
|
||||
;; Load runtime specific setup files
|
||||
(load-file (get-config-path "runtimes/ruby.el"))
|
||||
(load-file (get-config-path "runtimes/nodejs.el"))
|
||||
(load-file (get-config-path "runtimes/golang.el"))
|
||||
|
||||
;; Custom variables file
|
||||
(setq custom-file (get-config-path "custom-variables.el"))
|
||||
|
||||
10
runtimes/golang.el
Normal file
10
runtimes/golang.el
Normal file
@@ -0,0 +1,10 @@
|
||||
;;
|
||||
;; Go setup
|
||||
;;
|
||||
|
||||
(setq my-gopath (file-truename "~/.go"))
|
||||
(setq my-gopath-bin (concat my-gopath "/bin"))
|
||||
|
||||
(setenv "GOPATH" my-gopath)
|
||||
(setenv "PATH" (concat my-gopath-bin ":" (getenv "PATH")))
|
||||
(setq exec-path (cons my-gopath-bin exec-path))
|
||||
Reference in New Issue
Block a user