diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-07 10:21:59 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-07 10:21:59 +0100 |
commit | bead786b486086673825f8e79c1e33164daa7908 (patch) | |
tree | 520a1eb92b681c6b3d9591e0239ad0d3af8461a9 /Emacs/.config/emacs/config.org | |
parent | 1273e9fae59644c585959fba606c7e8eaafcc951 (diff) | |
download | dotfiles-bead786b486086673825f8e79c1e33164daa7908.tar.gz dotfiles-bead786b486086673825f8e79c1e33164daa7908.tar.bz2 dotfiles-bead786b486086673825f8e79c1e33164daa7908.zip |
(Emacs)+bindings for ivy-occur
evil-collection going weird here, so decided to roll my own keybinds.
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r-- | Emacs/.config/emacs/config.org | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 6ce2f29..4b48ae0 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -696,6 +696,16 @@ selection list). :keymaps 'ivy-switch-buffer-map "M-j" #'ivy-next-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 (require 'counsel nil t) (setq ivy-height 10 @@ -706,7 +716,10 @@ selection list). ivy-on-del-error-function #'ignore ivy-use-selectable-prompt t) (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 **** Counsel Setup for counsel. Load after ivy and helpful. |