简体   繁体   中英

Installing Emacs Evil Mode for Windows

I want to install Emacs Evil mode in Windows, but I can't find any documentation on the subject. Does Evil mode exist for Windows? If so how do I install?

You can install it through ELPA, or by cloning the repository to a local directory. It's no different on Windows from any other operating system.

What's the problem you're having? The home page has the simple installation instructions.

If you are interested in trying evil mode, I suggest you use the excellent bootstrap available here: https://github.com/bling/emacs-evil-bootstrap .

Two scenarios:

  1. If you don't have a .emacs or init.el file yet, simply copy the supplied init.el file into your emacs.d directory. Emacs will automatically load evil mode when you next open the program.
    (If you are running Windows, your emacs.d directory will probably be located at C:\\Users\\your-user-name\\AppData\\Roaming\\.emacs.d .)

  2. If you already have a .emacs or init.el config file, open up the github init file and copy across the code it contains to your own config file (if you already have some of this code, or some code that does the same job, you don't have to repeat it):

     (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) ;;; from purcell/emacs.d (defun require-package (package &optional min-version no-refresh) "Install given PACKAGE, optionally requiring MIN-VERSION. If NO-REFRESH is non-nil, the available package lists will not be re-downloaded in order to locate PACKAGE." (if (package-installed-p package min-version) t (if (or (assoc package package-archive-contents) no-refresh) (package-install package) (progn (package-refresh-contents) (require-package package min-version t))))) (package-initialize) (require-package 'evil) (setq evil-search-module 'evil-search evil-want-Cu-scroll t evil-want-Cw-in-emacs-state t) (require 'evil) (evil-mode t) 

    Again, just follow these steps, and emacs will automatically load evil mode when you next open the program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM