 
 (require 'cider)
 (setq cider-show-error-buffer nil)
+
+;; go-mode gofmt before save
+(add-hook 'before-save-hook #'gofmt-before-save)
 
 ;; Don't let ido steal focus when trying to create dirs/files
 (setq ido-auto-merge-work-directories-length -1)


;; Setup keybind for magit-status
(require 'magit)
(bind-key "C-c g" 'magit-status)

;; Set default font
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-11"))

;; Make sure to have downloaded archive description.
(or (file-exists-p package-user-dir)
    (package-refresh-contents))

(defun kill-other-buffers ()
  "Kill all other buffers."
  (interactive)
  (mapc 'kill-buffer (delq (current-buffer) (buffer-list))))

(ensure-package-installed 'evil
                          'evil-surround
