From 2d9cba5d8b923e3d0f4c6a39564776c0fd5f2845 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 29 Jan 2020 01:30:14 +0900 Subject: [PATCH] Use swiper for M-C-s --- emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index ea48aca..0497276 100644 --- a/emacs.el +++ b/emacs.el @@ -2837,11 +2837,14 @@ Any output will be written to current buffer." (when (fboundp 'counsel-imenu) (define-key ctl-x-map "l" 'counsel-imenu)) +(when (fboundp 'swiper) + (define-key esc-map (kbd "C-s") 'swiper)) + (when (fboundp 'swoop) ;; (global-set-key (kbd "C-s") 'swoop) ;; (global-set-key (kbd "C-r") 'swoop) ;; (define-key esc-map (kbd "C-s") 'swoop-multi) - (define-key esc-map (kbd "C-s") 'swoop) + ;; (define-key esc-map (kbd "C-s") 'swoop) (with-eval-after-load 'swoop-lib (defvar swoop-map) (define-key swoop-map (kbd "C-s") 'swoop-action-goto-line-next)