From da4b7f3e31bd3b4f353a06beca9dd23dee4e5f50 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <rama.krishnan@concur.com>
Date: Mon, 16 Mar 2015 21:40:53 +0530
Subject: [PATCH] go mode, gofmt save hook

---
 init.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/init.el b/init.el
index be9b90b..8a4d472 100644
--- a/init.el
+++ b/init.el
@@ -38,7 +38,7 @@
   (package-refresh-contents))
 
 ;; make sure my list of packages are installed
-(setq package-list '(rust-mode haskell-mode clojure-mode ghc restclient tangotango-theme cider))
+(setq package-list '(go-mode rust-mode haskell-mode clojure-mode ghc restclient tangotango-theme cider))
 
 ; install the missing packages
 (dolist (package package-list)
@@ -119,3 +119,6 @@
 (defun my-haskell-mode-hook ()
    (local-set-key "\C-cl" 'hs-lint))
 (add-hook 'haskell-mode-hook 'my-haskell-mode-hook)
+
+;; gofmt
+(add-hook 'before-save-hook #'gofmt-before-save)
-- 
2.45.2