/emacs-go

go-mode confiuration for GNU Emacs

Primary LanguageEmacs Lisp

emacs-go

Easy Go configuration for GNU Emacs.

Quick start

Install required go packages:

go get -t -v golang.org/x/tools/cmd/goimports
go get -t -v golang.org/x/tools/cmd/guru
go get -t -v github.com/rogpeppe/godef

Clone repository:

mkdir -p ~/.emacs.d/config
git clone https://github.com/Difrex/emacs-go ~/.emacs.d/config/golang

Add to your init.el:

(package-install use-package)
(add-to-list 'load-path "~/.emacs.d/config/golang")
(require 'go-config)
(configure-go-packages)

That’s all ;)