emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git
commit 0e841e2e7565c09f85d2ad304e4b9a6f60286529
parent 91cf80fce7c17fbe13643bcebde5216a8aa54c1f
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu, 21 Mar 2019 16:06:47 -0400

Autorun =gofmt= on save.

Diffstat:
MREADME.org | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
@@ -1208,7 +1208,8 @@ Remember to set =$GOPATH= environment variable and add =$GOPATH/bin= to =$PATH=.
   (use-package go-mode
     :ensure t
     :init
-    (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode)))
+    (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
+    (add-hook 'before-save-hook 'gofmt-before-save))
 #+END_SRC
 
 *** go-guru