counsel: use custom instead of hooks

This commit is contained in:
Artur Manuel 2025-04-07 17:43:41 +01:00
commit a8ed97fdf8
Signed by: amadaluzia
SSH key fingerprint: SHA256:ubvwT66gNUKSsgSzEb2UQnX8pzTq5N+r8eRVYGJJm4Q

View file

@ -33,6 +33,8 @@
(use-package ivy (use-package ivy
:custom :custom
(ivy-mode t)
(counsel-mode t)
(ivy-use-virtual-buffers t) (ivy-use-virtual-buffers t)
:bind (("C-s" . swiper-isearch) :bind (("C-s" . swiper-isearch)
("C-c C-r" . ivy-resume) ("C-c C-r" . ivy-resume)
@ -51,8 +53,7 @@
("C-x l" . counsel-locate) ("C-x l" . counsel-locate)
("C-S-o" . counsel-rhythmbox) ("C-S-o" . counsel-rhythmbox)
:map minibuffer-local-map :map minibuffer-local-map
("C-r" . counsel-minibuffer-history)) ("C-r" . counsel-minibuffer-history)))
:hook (after-init . ivy-mode))
(use-package savehist (use-package savehist
:defer t :defer t