   (add-hook 'after-init-hook #'global-flycheck-mode)
   (setq-default flycheck-emacs-lisp-load-path 'inherit) ; Inherit the loadpath for elisp checks
   (defvar flycheck-check-syntax-automatically '(mode-enabled save)))
-  
+
 ;; Rainbow Delimiters
 (use-package rainbow-delimiters
   :ensure t

;; Go Autocomplete
(use-package go-autocomplete
  :load-path "go")
  
;; Flycheck
(use-package flycheck
  :ensure t

  (require 'use-package))

;; Evil Mode
;; TODO: figure out why the following functions throw warnings and are not suppressed.
(declare-function evil-normal-state-p "evil")  ;; To supress warnings
(declare-function evil-motion-state-p "evil")  ;; To supress warnings
(declare-function evil-set-jump "evil") ;; To supress warnings
(use-package evil
  :ensure t
  :init
  (evil-mode 1))

;; Go Mode
(use-package go-mode
  :ensure t
  :init
  (setenv "GOPATH" (shell-command-to-string "$SHELL --login -i -c 'echo -n $GOPATH'")) ; set the $GOPATH
  (setq gofmt-command "goimports")
  (add-hook 'go-mode-hook #'go-awesome-mode-hook))


(defun go-awesome-mode-hook ()
  "Run all of the configuration settings for Golang when this hook is called."
  (setq tab-width 4)
  (setq indent-tabs-mode 1)
  ; Call Gofmt before saving
