 
 ;; Recentf
 (use-package recentf
-  :hook after-init-hook
+  :hook (after-init . recentf-mode)
   :init
   (setq recentf-save-file (expand-file-name (concat user-emacs-directory ".cache/recentf")))
   :config


(use-package amx
  :ensure t
  :init
  (setq amx-save-file (concat user-emacs-directory ".cache/.amx-items"))
  (add-hook 'after-init-hook 'amx-mode)
  :config
  (setq amx-auto-update-interval 10
        amx-history-length 5

;; Savehist
(use-package savehist
  :ensure t
  :hook (after-init . savehist-mode)
  :init
  (setq savehist-file (concat user-emacs-directory ".cache/savehist"))
  :config
