Installation via package.el
Evil is available as a package from MELPA stable, MELPA unstable and NonGNU ELPA. This is the recommended way of installing Evil.
To set up package.el to work with one of the MELPA repositories, you can follow the instructions on melpa.org[1].
Alternatively you can use NonGNU ELPA. It is part of the default package archives as of Emacs 28. For older Emacs versions you’ll need to add it yourself:
emacs-lisp
(add-to-list 'package-archives
(cons "nongnu" (format "http%s://elpa.nongnu.org/nongnu/"
(if (gnutls-available-p) "s" ""))))Once that is done, you can execute the following commands:
kbd
M-x package-refresh-contents
M-x package-install RET evil RETFinally, add the following lines to your Emacs init file:
emacs-lisp
(require 'evil)
(evil-mode 1)https://melpa.org/#/getting-started ↩︎