Add more counsel keybindings and enable wgrep in ivy-occur buffers
This commit is contained in:
parent
87f5b13b0b
commit
11c350bc2a
@ -4400,6 +4400,12 @@ An Emacs interface to MPD, the Music Player Daemon
|
||||
(general-def mpc-mode-map "a" #'mpc-playlist-add)
|
||||
#+END_SRC
|
||||
|
||||
* wgrep
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package wgrep
|
||||
:defer t)
|
||||
#+END_SRC
|
||||
|
||||
* Ivy
|
||||
An alternative minibuffer completion framework:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
@ -4407,6 +4413,7 @@ An alternative minibuffer completion framework:
|
||||
:defer 0
|
||||
:config
|
||||
(ivy-mode 1)
|
||||
(counsel-mode 1)
|
||||
(setq ivy-height 20
|
||||
ivy-wrap t
|
||||
ivy-use-virtual-buffers nil
|
||||
@ -4416,6 +4423,7 @@ An alternative minibuffer completion framework:
|
||||
(leader-def-key "SPC" #'counsel-M-x)
|
||||
(jdormit/define-prefix "i" "ivy")
|
||||
(jdormit/define-prefix "iU" "ui")
|
||||
(leader-def-key "ir" #'ivy-resume)
|
||||
(leader-def-key "ip" #'counsel-yank-pop)
|
||||
(leader-def-key "iu" #'counsel-unicode-char)
|
||||
(leader-def-key "iUt" #'counsel-load-theme)
|
||||
@ -4453,6 +4461,7 @@ An alternative minibuffer completion framework:
|
||||
(funcall-interactively 'find-file filename wildcards))
|
||||
|
||||
:general
|
||||
("C-c C-r" #'ivy-resume)
|
||||
("M-x" #'counsel-M-x)
|
||||
("C-x C-f" #'counsel-find-file)
|
||||
("C-M-u" #'counsel-unicode-char)
|
||||
@ -4471,6 +4480,7 @@ An alternative minibuffer completion framework:
|
||||
counsel-projectile-find-file
|
||||
counsel-projectile-grep)
|
||||
:init
|
||||
(counsel-projectile-mode)
|
||||
(leader-def-key "pp" #'counsel-projectile-switch-project)
|
||||
(leader-def-key "pf" #'counsel-projectile)
|
||||
(if (executable-find "rg")
|
||||
|
Loading…
Reference in New Issue
Block a user