From ab1f4969d0a2c97ce494bdf2bae6a93bd5273420 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 13 Nov 2019 23:17:20 -0500 Subject: [PATCH 1/1] emacs: simplify/tweak swiper and counsel use-packages --- .emacs.d/init.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e249f9b..06fd31f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1031,16 +1031,14 @@ This function is intended for use with `ivy-ignore-buffers'." (use-package swiper :demand :after ivy - :bind (("C-s" . swiper-isearch) - ("C-r" . swiper-isearch-backward) - ("C-S-s" . swiper-isearch))) + :bind (("C-S-s" . swiper-isearch))) (use-package counsel - :bind (;; ([remap execute-extended-command] . counsel-M-x) - ;; ([remap find-file] . counsel-find-file) - ("C-c f r" . counsel-recentf) + :demand + :after ivy + :bind (("C-c f r" . counsel-recentf) :map minibuffer-local-map - ("C-r" . counsel-minibuffer-history)) + ("C-r" . counsel-minibuffer-history)) :config (counsel-mode 1) (defalias 'locate #'counsel-locate)) -- 2.20.1