+;;; init.el -- Main initalization script
+
+;;; Commentary:
+;; Copyright (c) 2016 Brayden Winterton
+;; Author: Brayden Winterton <bwinterton@gmail.com>
+
+;;; Code:
+
 ;; Include Marmalade and MELPA repos
 (require 'package)
 (push '("marmalade" . "http://marmalade-repo.org/packages")

(add-to-list 'load-path "~/.emacs.d/go")
(require 'go-mode-autoloads)
(defun go-awesome-mode-hook ()
  (setq gofmt-command "goimports")
  (setq tab-width 4)
  (setq indent-tabs-mode 1)
  ; Call Gofmt before saving

  (local-set-key (kbd "C-g j") 'godef-jump))

(add-hook 'go-mode-hook 'go-awesome-mode-hook)
(require 'go-autocomplete)
  
;; Flycheck
(add-hook 'after-init-hook #'global-flycheck-mode)
(defvar flycheck-check-syntax-automatically '(mode-enabled save))


;; Emacs Lisp Mode
(setq-default flycheck-emacs-lisp-load-path 'inherit) ; Inherit the loadpath for checks

;; Rainbow Delimiters
(require 'rainbow-delimiters)
