commit | 0ac151fd5cb9f6a39927f12016fbe9275229524b | [log] [tgz] |
---|---|---|
author | Sameer Ajmani <ajmani@gmail.com> | Thu Mar 24 10:35:39 2011 -0400 |
committer | Russ Cox <rsc@golang.org> | Thu Mar 24 10:35:39 2011 -0400 |
tree | 6f3f6325375e6086f4946576914471d89edcec79 | |
parent | d1b75bbc4609087a69bf6bdb908036c58c8947ea [diff] |
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