]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: Fix the automatic gofmt when creating a new file.
authorJean-Marc Eurin <jmeurin@google.com>
Mon, 11 Jun 2012 17:12:28 +0000 (13:12 -0400)
committerSameer Ajmani <sameer@golang.org>
Mon, 11 Jun 2012 17:12:28 +0000 (13:12 -0400)
commitd608b15db7f1e55e612f23cb9039379087a1f287
treecc2c23f5e5b7f25f7524fc98aa1967512d4c8504
parent1d609f9b9f0c2133cfce86175ad49c8800954a28
misc/emacs: Fix the automatic gofmt when creating a new file.

Patching the buffer with the output from gofmt -d only works if
the file already exists. If it doesn't, replace the content with
the output of gofmt.

R=sameer
CC=golang-dev
https://golang.org/cl/6302063
misc/emacs/go-mode.el