From c3da3ac675d64f3aea19e10eac206ea2c108ce9b Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 11 Apr 2020 19:12:53 +0100 Subject: emacs: Use goimports to format Go code --- emacs/init.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index fc5f8f0..357a2f8 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -60,6 +60,7 @@ (add-hook 'c++-mode-hook (lambda () (google-set-c-style))) (add-hook 'go-mode-hook (lambda () + (setq-local gofmt-command "goimports") (setq-local tab-width 2) (add-hook 'before-save-hook 'gofmt-before-save nil t))) (add-hook 'ibuffer-mode-hook -- cgit v1.2.3-70-g09d2