Installed Emacs evil. How do I start it?

Shay picture Shay · Dec 7, 2012 · Viewed 7.2k times · Source

Just out of curiosity, I wanted to try emacs + evil. Here's what I've done so far:

  • Installed emacs 24 on Windows 7 -- went well

  • Created an .emacs file in C:\Users\name\AppData\Roaming\ (where .emacs.d ended up)

  • Added the following to that .emacs file

    (setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
                             ("gnu" . "http://elpa.gnu.org/packages/")
                             ("marmalade" . "http://marmalade-repo.org/packages/")))
  • started emacs then M-x package-list-packages

  • selected evil, evil-leader, evil-numbers with i then x to install

  • restarted emacs

Evil shows as installed in package-list-packages and the evil files are present in .emacs.d\elpa, but evil doesn't seem to be loaded when I start emacs (No <N> in the status bar).

JUST starting with emacs. Not managing to get much out of it except for a lot of beeps. Want to start simple and use it for a few days before possibly moving forward with further extensions.

Answer

syohex picture syohex · Dec 7, 2012

You should add following s-expressions to your .emacs.

(package-initialize)
(evil-mode 1)        ;; enable evil-mode