diff options
-rw-r--r-- | emacs.d/inits/90_lang-go.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs.d/inits/90_lang-go.el b/emacs.d/inits/90_lang-go.el index 94c44ef..b20b467 100644 --- a/emacs.d/inits/90_lang-go.el +++ b/emacs.d/inits/90_lang-go.el @@ -19,4 +19,5 @@ :init (progn (add-hook 'go-mode-hook (lambda () (go-eldoc-setup) + (add-hook 'before-save-hook 'gofmt-before-save) (set (make-local-variable 'company-backends) '(company-go)))))) |