I am learning my way around Emacs. I installed Ivy/Counsel recently. I am trying to use search with Swiper but cannot get the key binding to work. I can get it to work with M-x swiper
. I am not sure where I am going wrong. This is my config:
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(setq ivy-count-format "(%d/%d) ")
(setq enable-recursive-minibuffers t)
(global-set-key (kbd "C-s") 'swiper)
I have this as well:
(define-key global-map "\C-s" 'swiper)
None of the above works. I can still use with M-x swiper
.
C-h k C-s
give you? The code you list should work, so there must be something else going on - either the code isn't being evaluated, or the key binding is being overwritten by something else.