 ;; Savehist
 (use-package savehist
   :ensure t
-  :commands savehist-mode
+  :hook after-init-hook
   :init
   (setq savehist-file (concat user-emacs-directory ".cache/savehist"))
-  (add-hook 'after-init-hook 'savehist-mode)
   :config
   (setq history-length 250
         history-delete-duplicates t

  (use-package visual-regexp-steroids :ensure t))

(use-package winner
  :commands winner-mode
  :init
  (add-hook 'after-init-hook 'winner-mode))

(use-package buffer-move
  :ensure t

  :commands wgrep-setup
  :init
  (add-hook 'occur-mode-hook 'wgrep-setup)
  (add-hook 'rg-mode-hook    'wgrep-setup))

(use-package rg
  :ensure t
