From aaf7b46a382c70fccf17653602d40272cfd83659 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 3 Jan 2016 10:00:07 -0800 Subject: [emacs] gofmt on save Closes #8. --- emacs.d/inits/90_lang-go.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs.d/inits/90_lang-go.el') 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)))))) -- cgit 1.4.1