 (use-package flycheck
   :delight
   :config
-  (global-flycheck-mode t))
+  (global-flycheck-mode 1))
 
 (use-package flycheck-pos-tip
   :after (flycheck)

;; Turn on subword mode and linum mode for all prog and text modes
(dolist (hook '(prog-mode-hook text-mode-hook))
  (add-hook hook (lambda ()
                   (subword-mode t)
                   (if (fboundp 'display-line-numbers-mode)
                       (display-line-numbers-mode t)
                     (linum-mode t)
                     ;; Renumber the current buffer after reverting the buffer
                     (add-hook 'after-revert-hook 'linum-update-current)))))


(use-package diff-hl
  :config
  (unless (display-graphic-p)
    (diff-hl-margin-mode 1))
  (diff-hl-flydiff-mode 1)
  (add-hook 'dired-mode-hook 'diff-hl-dired-mode))

(use-package magit)
