Skip to content

Instantly share code, notes, and snippets.

@danp
Created March 4, 2014 16:37
Show Gist options
  • Select an option

  • Save danp/9350030 to your computer and use it in GitHub Desktop.

Select an option

Save danp/9350030 to your computer and use it in GitHub Desktop.
(setenv "GOPATH" (expand-file-name "$HOME/Projects/go/gopath"))
(setenv "PATH" "/Users/dan/bin:/opt/boxen/rbenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/Applications/Emacs.app/Contents/MacOS/bin:/Applications/Postgres.app/Contents/Versions/9.3/bin:/usr/local/bin:/usr/local/google-cloud-sdk/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/dan/Projects/go/gopath/bin:/usr/local/go/bin")
(setq exec-path (append (list (expand-file-name "~/Projects/go/gopath/bin") "/usr/local/go/bin" "/opt/boxen/rbenv/bin") exec-path))
; I installed go-mode via package-install
; I installed goflymake with `go get -u github.com/dougm/goflymake`
(add-to-list 'load-path "~/Projects/go/gopath/src/github.com/dougm/goflymake")
(require 'go-flymake)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment