From e7222330c9bcce29f174f571df002bd4a0e9e4ad Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 12 Apr 2019 11:10:26 +0200 Subject: [PATCH] =?UTF-8?q?[Init]=20Use=20=E2=80=98swiper-isearch=E2=80=99?= =?UTF-8?q?=20when=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 9f0d437..8839d04 100644 --- a/init.el +++ b/init.el @@ -196,7 +196,6 @@ (bind-key "C-c s" #'synonyms) (bind-key "C-h C-f" #'find-function) (bind-key "C-h C-k" #'find-function-on-key) - (bind-key "C-s" #'isearch-forward) (bind-key "M-i" #'swiper-from-isearch isearch-mode-map) (bind-key "C-x C-d" #'dired) (bind-key "C-x C-r" #'revert-buffer) @@ -230,6 +229,9 @@ (bind-key "C-h v" #'counsel-describe-variable) (bind-key "C-S-s" #'counsel-grep-or-swiper)) + (when (package-installed-p 'swiper) + (bind-key "C-s" #'swiper-isearch)) + (when (package-installed-p 'helm) (bind-key "M-y" #'helm-show-kill-ring))