Move swiper to required section

This commit is contained in:
Adam Goldsmith 2016-03-02 02:08:41 -05:00
parent 0a69504866
commit 5c22ba796e

View File

@ -117,6 +117,18 @@
:bind ("C-;" . avy-goto-char) :bind ("C-;" . avy-goto-char)
:bind ("C-'" . avy-goto-char-2)) :bind ("C-'" . avy-goto-char-2))
(use-package swiper :quelpa
:bind ("C-s" . swiper)
:bind ("C-r" . swiper)
:bind ("C-c C-r" . ivy-resume)
:init
(global-set-key (kbd "C-S-s") 'isearch-forward)
(global-set-key (kbd "C-S-r") 'isearch-backward)
:config
(ivy-mode 1)
(define-key swiper-map (kbd "C-r") 'ivy-previous-line-or-history)
(define-key ivy-minibuffer-map (kbd "C-'") 'ivy-avy))
(use-package counsel :quelpa (use-package counsel :quelpa
:bind ("M-x" . counsel-M-x) :bind ("M-x" . counsel-M-x)
:bind ("C-M-y" . counsel-yank-pop) :bind ("C-M-y" . counsel-yank-pop)
@ -298,18 +310,6 @@
(company-abort) (company-abort)
(call-interactively 'company-yasnippet))) (call-interactively 'company-yasnippet)))
(use-package swiper
:bind ("C-s" . swiper)
:bind ("C-r" . swiper)
:bind ("C-c C-r" . ivy-resume)
:init
(global-set-key (kbd "C-S-s") 'isearch-forward)
(global-set-key (kbd "C-S-r") 'isearch-backward)
:config
(ivy-mode 1)
(define-key swiper-map (kbd "C-r") 'ivy-previous-line-or-history)
(define-key ivy-minibuffer-map (kbd "C-'") 'ivy-avy))
(use-package highlight-indent-guides (use-package highlight-indent-guides
:config :config
(add-hook 'prog-mode-hook 'highlight-indent-guides-mode)) (add-hook 'prog-mode-hook 'highlight-indent-guides-mode))