In order to install evil and evil-collections I added this to my config:

(use-package evil
  :ensure t
  (setq evil-want-keybinding nil)
  (evil-mode 1))

(use-package evil-collection
  :after evil
  :ensure t

Then for the keybind:

(define-key evil-motion-state-map (kbd "SPC w") switch-window)

But I get this error on boot:

symbol's value as variable is void: evil-motion-state-map

I am pretty new to emacs so I am unsure why it would not work and I haven't found something online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.