emacs: simplify/tweak swiper and counsel use-packages
authorAmin Bandali <bandali@gnu.org>
Thu, 14 Nov 2019 04:17:20 +0000 (23:17 -0500)
committerAmin Bandali <bandali@gnu.org>
Thu, 14 Nov 2019 04:17:20 +0000 (23:17 -0500)
.emacs.d/init.el

index e249f9b..06fd31f 100644 (file)
@@ -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))