]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: gofmt: don't clobber the current buffer on failure
authorSameer Ajmani <ajmani@gmail.com>
Thu, 24 Mar 2011 14:35:39 +0000 (10:35 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 24 Mar 2011 14:35:39 +0000 (10:35 -0400)
commit0ac151fd5cb9f6a39927f12016fbe9275229524b
tree6f3f6325375e6086f4946576914471d89edcec79
parentd1b75bbc4609087a69bf6bdb908036c58c8947ea
misc/emacs: gofmt: don't clobber the current buffer on failure

Change M-x gofmt to display errors in a new buffer instead of
clobbering the current buffer.

Add gofmt-before-save, which runs gofmt when in go-mode.  This
can be used with before-save-hook.  Add to your .emacs:
  (add-hook 'before-save-hook 'gofmt-before-save)

R=rsc, aclements, amdragon
CC=golang-dev
https://golang.org/cl/4276059
misc/emacs/go-mode-load.el
misc/emacs/go-mode.el