 (add-to-list 'load-path "~/.emacs.d/go")
 (require 'go-mode-autoloads)
 (defun go-awesome-mode-hook ()
-  (setq gofmt-command "goimports")
+  "Run all of the configuration settings for Golang when this hook is called."
+  (defvar gofmt-command "goimports")
   (setq tab-width 4)
   (setq indent-tabs-mode 1)
   ; Call Gofmt before saving

;; Include Marmalade and MELPA repos
(require 'package)
(push '("marmalade" . "http://marmalade-repo.org/packages")

;; Auto-complete mode
(require 'auto-complete-config)
(ac-config-default)

;; Disable bell for certain circumstances
(defun intelligent-bell ()
  "Disable the bell for certain common and personally unwanted circumstances."
  (unless (memq this-command
        '(isearch-abort abort-recursive-edit exit-minibuffer
              keyboard-quit mwheel-scroll down up next-line previous-line
              backward-char forward-char))
    (ding)))
(setq ring-bell-function 'intelligent-bell)

;;; init.el ends here
