Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installed Emacs evil. How do I start it?

Tags:

emacs

elpa

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.

like image 776
Shay Avatar asked Dec 07 '12 02:12

Shay


1 Answers

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

(package-initialize)
(evil-mode 1)        ;; enable evil-mode
like image 164
syohex Avatar answered Oct 17 '22 04:10

syohex