From ccb18ed35d7bee1b5a94f468963d012452ec4ca4 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 1 Jul 2014 10:24:22 -0700 Subject: [PATCH] go.tools/cmd/goimports: update doc.go to new emacs instructions LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/103670045 --- cmd/goimports/doc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index 96b2be1593..7a39da1d82 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -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)