From 9c7033cee569e8b3dd4a4fc916faaf5e40f58879 Mon Sep 17 00:00:00 2001 From: bogdanteleaga Date: Mon, 19 Oct 2015 16:21:39 +0300 Subject: [PATCH] Updated readme with example for goimports --- layers/+lang/go/README.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/+lang/go/README.org b/layers/+lang/go/README.org index 6667eec64..2766c9413 100644 --- a/layers/+lang/go/README.org +++ b/layers/+lang/go/README.org @@ -18,7 +18,7 @@ This layer adds extensive support for go. ** Features: -- gofmt on file save +- gofmt/goimports on file save - Auto-completion using [[https://github.com/nsf/gocode/tree/master/emacs][go-autocomplete]] (with the =auto-completion= layer) - Source analysis using [[http://golang.org/s/oracle-user-manual][go-oracle]] @@ -55,6 +55,8 @@ formatter, set the value of =gofmt-command=, e.g. #+begin_src emacs-lisp (setq gofmt-command "goimports") + or + (go :variables gofmt-command "goimports") #+end_src * Working with Go