I've installed the evil package to make emacs keybindings more like vim. After installing it I put the following lines on my .emacs file:

(require 'evil)
(evil-mode 1)

It works fine when I'm editing files. However, if I try to use the command :list-packages, the vim keybindings are not working at all... The standard emacs commands work fine in this case, but I'd like to use vim keybindings in this case as well. Is there any way of configuring evil mode to use vim keybindings everywhere?

1 Answer 1


I suggest evil-collection or you can set the initial state manually like it:

(evil-set-initial-state 'package-menu-mode 'motion)
  • 1
    I guess for package-menu-mode, if not using evil-collection or evilified-state, as there is no editing to be done, using evil motion state would be more appropriate. Oct 19, 2022 at 5:27
  • Thanks @dalanicolai, it makes sense. Oct 19, 2022 at 6:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.