emacs: simplify/tweak swiper and counsel use-packages
[~bandali/configs] / .emacs.d / init.el
index 1a8b70e..06fd31f 100644 (file)
@@ -1019,9 +1019,10 @@ This function is intended for use with `ivy-ignore-buffers'."
 
   (ivy-mode 1)
   :custom-face
+  (ivy-minibuffer-match-face-1 ((t (:background "#eeeeee"))))
   (ivy-minibuffer-match-face-2 ((t (:background "#e7e7e7" :weight bold))))
-  (ivy-minibuffer-match-face-3 ((t (:background "#bbbbff" :weight semi-bold))))
-  (ivy-minibuffer-match-face-4 ((t (:background "#ffbbff" :weight semi-bold))))
+  (ivy-minibuffer-match-face-3 ((t (:background "light goldenrod" :weight semi-bold))))
+  (ivy-minibuffer-match-face-4 ((t (:background "misty rose" :weight semi-bold))))
   (ivy-current-match ((((class color) (background light))
                        :background "#d7d7d7" :foreground "black")
                       (((class color) (background dark))
@@ -1030,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))
@@ -1777,7 +1776,7 @@ This function is intended for use with `ivy-ignore-buffers'."
        (advice-add 'magit-branch-and-checkout
                    :after #'my-projectile-invalidate-cache)))
   :custom
-  ;; (projectile-completion-system 'ivy)
+  (projectile-completion-system 'ivy)
   (projectile-mode-line-prefix " proj"))
 
 (use-package helpful