 ;;; [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


;; command log
(use-package command-log-mode
  :ensure t
  :config (progn
	    (defun meain/command-log-mode ()
	      "Enable command-log-mode and open command-log buffer."
	      (interactive)
	      (global-command-log-mode)
	      (clm/open-command-log-buffer))))

;; Beacon mode
(use-package beacon
  :ensure t
  :init (beacon-mode t))

;;; [CUSTOM FUNCTIONS] ==============================================

		  "! ")
	    (setq flymake-diagnostic-at-point-display-diagnostic-function
		  'flymake-diagnostic-at-point-display-minibuffer)
	    (add-hook 'flymake-mode-hook #'flymake-diagnostic-at-point-mode)
	    (evil-leader/set-key "j" 'flymake-goto-next-error)
	    (evil-leader/set-key "k" 'flymake-goto-prev-error)))

;; Company for autocompletions
(use-package company
