Commit ae15d6138855

Vincent Demeester <vincent@sbr.pm>
2019-07-17 22:02:39
setup-ivy: add C-r binding
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cfe4f3f
Changed files (1)
lisp/setup-ivy.el
@@ -82,6 +82,10 @@ Otherwise, use `counsel-projectile-switch-project'."
     (bind-to-vde-map "s" #'counsel-rg))
   :config
   (progn
+    (define-key minibuffer-local-map
+      (kbd "C-r") 'counsel-minibuffer-history)
+    (define-key shell-mode-map
+      (kbd "C-r") 'counsel-shell-history)
     (setq
      counsel-describe-function-function 'helpful-function
      counsel-describe-variable-function 'helpful-variable)