   :config)
 
 (use-package undo-tree
-  :init
-  (add-hook 'prog-mode-hook 'undo-tree-mode)
-  (add-hook 'text-mode-hook 'undo-tree-mode)
+  :hook ((prog-mode text-mode) . undo-tree-mode)
   :config
   :general
     ("<f4> v"     #'undo-tree-visualize)


;; built-in "simple" package
(use-package simple
  :ensure nil
  :general
    ("s-n"        #'next-error)
    ("s-p"        #'previous-error)
  :init
  (add-hook 'prog-mode-hook #'visual-line-mode)
  (add-hook 'text-mode-hook #'visual-line-mode)
  (add-hook 'visual-line-mode-hook (lambda () (diminish 'visual-line-mode "¶")))
  (add-hook 'auto-fill-mode-hook (lambda () (diminish 'auto-fill-function "⤶")))
  (setq kill-ring-max 200                      ; More killed items


;; built-in autorevert package
(use-package autorevert
  :hook (( prog-mode text-mode ) . auto-revert-mode )
  :ensure nil
  :defer 2
  :config
  (setq auto-revert-check-vc-info nil                         ; don't update branch on auto-revert
        auto-revert-verbose nil)                              ; don't tell me about auto reverts
