(Emacs)+bindings for ivy-occur
evil-collection going weird here, so decided to roll my own keybinds.
This commit is contained in:
@@ -696,6 +696,16 @@ selection list).
|
|||||||
:keymaps 'ivy-switch-buffer-map
|
:keymaps 'ivy-switch-buffer-map
|
||||||
"M-j" #'ivy-next-line-or-history
|
"M-j" #'ivy-next-line-or-history
|
||||||
"M-k" #'ivy-previous-line-or-history)
|
"M-k" #'ivy-previous-line-or-history)
|
||||||
|
(nmap
|
||||||
|
:keymaps '(ivy-occur-mode-map ivy-occur-grep-mode-map)
|
||||||
|
"RET" #'ivy-occur-press-and-switch
|
||||||
|
"J" #'ivy-occur-press
|
||||||
|
"g" #'ivy-occur-revert-buffer
|
||||||
|
"q" #'quit-window
|
||||||
|
"D" #'ivy-occur-delete-candidate
|
||||||
|
"W" #'ivy-wgrep-change-to-wgrep-mode
|
||||||
|
"{" #'compilation-previous-file
|
||||||
|
"}" #'compilation-next-file)
|
||||||
:config
|
:config
|
||||||
(require 'counsel nil t)
|
(require 'counsel nil t)
|
||||||
(setq ivy-height 10
|
(setq ivy-height 10
|
||||||
@@ -706,7 +716,10 @@ selection list).
|
|||||||
ivy-on-del-error-function #'ignore
|
ivy-on-del-error-function #'ignore
|
||||||
ivy-use-selectable-prompt t)
|
ivy-use-selectable-prompt t)
|
||||||
(with-eval-after-load "amx"
|
(with-eval-after-load "amx"
|
||||||
(setq amx-backend 'ivy)))
|
(setq amx-backend 'ivy))
|
||||||
|
(with-eval-after-load "evil"
|
||||||
|
(evil-set-initial-state 'ivy-occur-mode 'normal)
|
||||||
|
(evil-set-initial-state 'ivy-occur-grep-mode 'normal)))
|
||||||
#+end_src
|
#+end_src
|
||||||
**** Counsel
|
**** Counsel
|
||||||
Setup for counsel. Load after ivy and helpful.
|
Setup for counsel. Load after ivy and helpful.
|
||||||
|
|||||||
Reference in New Issue
Block a user