Skip to content

helinwang/go-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

  1. Put the content of this repo to ~/.emacs.d
  2. Run following commands:
go get -u golang.org/x/tools/cmd/...
go get -u github.com/rogpeppe/godef/...
go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/tools/cmd/guru
go get -u github.com/dougm/goflymake
go get -u github.com/alecthomas/gometalinter
gometalinter --install --update
go get -u golang.org/x/tools/cmd/gorename

Usage

Hotkeys:

  (local-set-key (kbd "M-d") 'go-guru-describe)
  (local-set-key (kbd "M-.") 'go-guru-definition)
  (local-set-key (kbd "M-,") 'pop-tag-mark)
  (local-set-key (kbd "M-p") 'compile)            ; Invoke compiler        
  (local-set-key (kbd "M-P") 'recompile)          ; Redo most recent compile cmd       
  (local-set-key (kbd "M-]") 'next-error)         ; Go to next error (or msg)       
  (local-set-key (kbd "M-[") 'previous-error)     ; Go to previous error or msg   

Snippets (triggered with tab):

iferr:

if err != nil {

}

About

.emacs.d configured for golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published