 (defun my/set-gc-threshold ()
   "Reset `gc-cons-threshold' to its default value."
   (setq gc-cons-threshold 800000))
+
+(defun remove-elc-on-save ()
+  "If you're saving an elisp file, likely the .elc is no longer valid."
+  (add-hook 'after-save-hook
+            (lambda ()
+              (if (file-exists-p (concat buffer-file-name "c"))
+                  (delete-file (concat buffer-file-name "c"))))
+            nil
+            t))
+
+(defun my-compilation-hook ()
+  "Make sure that the compile window is splitting vertically"
+  (progn
+    (if (not (get-buffer-window "*compilation*"))
+        (progn
+          (split-window-vertically)
+          )
+      )
+    )
+  )
 
 (custom-set-variables
  ;; custom-set-variables was added by Custom.

 ;; Safe local variables
 enable-local-variables ':all
 ;; Warning suppress list
 warning-suppress-types nil
 )

(setq-default
 ;; Default indentation

                       (setq compilation-error-regexp-alist (delete 'go-test compilation-error-regexp-alist))
                       (setq compilation-error-regexp-alist-alist (delete 'go-test compilation-error-regexp-alist-alist))
                       (let ((name 'go)
                             (pattern (concat "^\\(" (getenv "GOPATH") "/src/[^:]+\\):\\([0-9]+\\)")))
                         (add-to-list 'compilation-error-regexp-alist name)
                         (add-to-list 'compilation-error-regexp-alist-alist (list name pattern 1 2) t))
                       (set (make-local-variable 'company-backends) '((company-go :with company-yasnippet)))))
  :config
  (use-package company-go
    :init (setq company-go-insert-arguments nil))
