1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00

go.tools/cmd/goimports: update doc.go to new emacs instructions

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/103670045
This commit is contained in:
Rob Pike 2014-07-01 10:24:22 -07:00
parent 87301fe3a6
commit ccb18ed35d

View File

@ -9,11 +9,11 @@ It's a drop-in replacement for your editor's gofmt-on-save hook.
It has the same command-line interface as gofmt and formats
your code in the same way.
For emacs, make sure you have the latest (Go 1.2+) go-mode.el:
https://go.googlecode.com/hg/misc/emacs/go-mode.el
For emacs, make sure you have the latest go-mode.el:
https://github.com/dominikh/go-mode.el
Then in your .emacs file:
(setq gofmt-command "goimports")
(add-to-list 'load-path "/home/you/goroot/misc/emacs/")
(add-to-list 'load-path "/home/you/somewhere/emacs/")
(require 'go-mode-load)
(add-hook 'before-save-hook 'gofmt-before-save)