I am trying to use gofmt on my go before I save it.
; Run gofmt before save (setq gofmt-command "goimports") (setq exec-path (cons "/usr/lib/go/bin" exec-path)) (add-to-list 'exec-path "/home/giodamelio/Projects/go/bin") (add-hook 'before-save-hook 'gofmt-before-save)
The problem is, whenever I try to move the cursor(either with C-n/C-p, or with evil), the contents of the buffer seem to flicker. It is not the entire buffer(not visual bell), and it is not the same bits of text each time.
When I comment out those four lines it goes away, so I know it has somthing to do with them, but my understanding of the
before-save-hook is that is will only run before I save, not whenever I move the cursor"