From c18bba0babd418e66b26a5ba9b31cf150cf169d6 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 28 Jul 2014 10:30:45 +0100 Subject: [PATCH] Use goimports instead of gofmt --- mode-customizations/go-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mode-customizations/go-mode.el b/mode-customizations/go-mode.el index 1d18cc6..0a6451e 100644 --- a/mode-customizations/go-mode.el +++ b/mode-customizations/go-mode.el @@ -12,4 +12,6 @@ ) (add-hook 'go-mode-hook 'customizations-for-go-mode) + +(setq gofmt-command "goimports") (add-hook 'before-save-hook #'gofmt-before-save)