├── .gitignore ├── README.md └── init.el /.gitignore: -------------------------------------------------------------------------------- 1 | elpa 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | emacs-evil-bootstrap 2 | ==================== 3 | 4 | The quickest way to trying out Vim in Emacs 5 | 6 | Install 7 | ======= 8 | 9 | `git clone https://github.com/bling/emacs-evil-bootstrap.git ~/.emacs.d` 10 | 11 | Settings 12 | ======== 13 | 14 | This bootstrap changes 3 evil-mode settings from their default values: 15 | 16 | * `evil-search-module` is set to `evil-search` instead of the default `isearch` module. 17 | * `evil-want-C-u-scroll` binds `C-u` to scroll up instead of the default `universal-argument` function. 18 | * `evil-C-w-in-emacs-state` binds `C-w` to control windows just like Vim instead of the default of cutting a region. 19 | 20 | License 21 | ======= 22 | 23 | MIT License. Copyright (c) 2013 Bailey Ling. 24 | -------------------------------------------------------------------------------- /init.el: -------------------------------------------------------------------------------- 1 | (require 'package) 2 | (add-to-list 'package-archives 3 | '("melpa" . "http://melpa.org/packages/") t) 4 | 5 | ;;; from purcell/emacs.d 6 | (defun require-package (package &optional min-version no-refresh) 7 | "Install given PACKAGE, optionally requiring MIN-VERSION. 8 | If NO-REFRESH is non-nil, the available package lists will not be 9 | re-downloaded in order to locate PACKAGE." 10 | (if (package-installed-p package min-version) 11 | t 12 | (if (or (assoc package package-archive-contents) no-refresh) 13 | (package-install package) 14 | (progn 15 | (package-refresh-contents) 16 | (require-package package min-version t))))) 17 | 18 | (package-initialize) 19 | 20 | (require-package 'evil) 21 | 22 | (setq evil-search-module 'evil-search 23 | evil-want-C-u-scroll t 24 | evil-want-C-w-in-emacs-state t) 25 | 26 | (require 'evil) 27 | (evil-mode t) 28 | --------------------------------------------------------------------------------