 (use-package ivy
   :ensure t
   :diminish ivy-mode
-  :hook after-init-hook
+  :hook (after-init . ivy-mode)
   :config
   (setq ivy-height 12
         ivy-count-format "(%d/%d) "


(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

  :commands electric-spacing-mode)

(use-package which-func
  :hook (prog-mode . which-function-mode))

(use-package highlight
  :ensure t
