https://github.com/helinwang/go-emacs
.emacs.d configured for golang
https://github.com/helinwang/go-emacs
Last synced: 25 days ago
JSON representation
.emacs.d configured for golang
- Host: GitHub
- URL: https://github.com/helinwang/go-emacs
- Owner: helinwang
- Created: 2017-05-26T19:58:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T04:11:17.000Z (over 5 years ago)
- Last Synced: 2025-02-17T06:28:51.351Z (4 months ago)
- Language: Emacs Lisp
- Size: 44.9 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Install
1. Put the content of this repo to `~/.emacs.d`
1. Run following commands:
```bash
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:
```lisp
(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):
```text
iferr:if err != nil {
}
```