(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)
(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)