forked from bling/emacs-evil-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
27 lines (22 loc) · 816 Bytes
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(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-C-u-scroll t
evil-want-C-w-in-emacs-state t)
(require 'evil)
(evil-mode t)