bling / fzf.el

A front-end for fzf
GNU General Public License v3.0
364 stars 49 forks source link

Turn off evil? #48

Closed neojski closed 3 years ago

neojski commented 5 years ago

I think it relates to #45 a bit.

I would like fzf to turn-off evil mode in the fzf window so that I could use ctrl-p and ctrl-n to move up and down rather than trying to autocomplete. I made the change locally by adding (turn-off-evil-mode) here. Would you accept such change as a PR? Or, maybe, it should be configurable?

j-cr commented 4 years ago
(advice-add 'fzf :after 'turn-off-evil-mode)
(advice-add 'fzf-git :after 'turn-off-evil-mode)
(advice-add 'fzf-git-grep :after 'turn-off-evil-mode)
(advice-add 'fzf-git-files :after 'turn-off-evil-mode)
(advice-add 'fzf-hg :after 'turn-off-evil-mode)
(advice-add 'fzf-directory :after 'turn-off-evil-mode)
(advice-add 'fzf-projectile :after 'turn-off-evil-mode)