]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] misc/emacs: Fix the automatic gofmt when creating a new file.
authorJean-Marc Eurin <jmeurin@google.com>
Wed, 13 Jun 2012 20:24:59 +0000 (16:24 -0400)
committerSameer Ajmani <sameer@golang.org>
Wed, 13 Jun 2012 20:24:59 +0000 (16:24 -0400)
commit95c8f44f3a25542f2c1800f1b50a3ee582620d49
tree142b30cd583832d15e9034426bcf5de012daed35
parent687e047b14b8cfc34c066b7a9548abd105bf8130
[release-branch.go1] misc/emacs: Fix the automatic gofmt when creating a new file.

««« backport 5b4920fe3605
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