Add Go lang environment setup

This commit is contained in:
2014-07-15 22:34:42 +01:00
parent 269b8cc6a8
commit e27310f586
2 changed files with 11 additions and 0 deletions

View File

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