 ;;; [OTHER PACKAGES] =============================================
 
 ;; flymake
-(require 'flymake)
+(use-package flymake
+  :init (add-hook 'find-file-hook 'flymake-find-file-hook))
 (use-package flymake-diagnostic-at-point
   :ensure t
   :after flymake

;;; Code:

;; increase gc threshold (speeds up initial load)
(setq gc-cons-threshold 400000000)

;;; [PACKAGE SETUP] =============================================


;; Diminish
(use-package diminish
  :ensure t
  :defer t
  :init (progn
	  (diminish 'eldoc-mode)
	  (diminish 'auto-revert-mode)))
