Description Add 'go-mode-show-gofmt-errors' to control display of gofmt errors.
Set the variable to nil to completely ignore gofmt errors, or non-nil
to display the errors in a buffer. The value default to 't.
Documentation about the variable can be displayed within Emacs using
'M-x describe-variable'.
Some people like the ability to temporarily disable gofmt errors
when saving a file while using gofmt to autmoatically format code
using the before-save-hook. To do this, use the following:
(defun my-gofmt-before-save-hook ()
(let ((go-mode-show-gofmt-errors nil))
(when (eq major-mode 'go-mode) (gofmt))))
(add-hook 'before-save-hook #'my-gofmt-before-save-hook)
Patch Set 1 #Patch Set 2 : diff -r bfb45be43e2b https://code.google.com/p/go #Patch Set 3 : diff -r 8e4103edc064 https://code.google.com/p/go #MessagesTotal messages: 4
|