Emacs go-mode gofmt diff problem
Shit. In emacs golang go-mode.el
, the
Alt+x gofmt
command doesn't work on Microsoft Windows because it's trying to call unix shell command diff
. Sloppy, plus, it shouldn't need to.
![emacs go mode diff error 2021-01-15 hMChb](i/emacs_go_mode_diff_error_2021-01-15_hMChb.png)
gofmt
command itself supports diff, by gofmt -d
![gofmt diff 2021-01-15 tTvvp](i/gofmt_diff_2021-01-15_tTvvp.png)
now write my own. emacs lisp command to call gofmt. golang