<div dir="ltr">
<div bgcolor="#FFFFFF" text="#000000"><a href="http://wikemacs.org/index.php/Evil">wikemacs.org/index.php/Evil</a> says "Evil comes prebuilt in emacs24"<font>.<span style="font-family:arial,helvetica,sans-serif"> i have 24.3.1 but can't find evil with it. (require 'evil) got "File error: Cannot open load file, evil". what am i missing?<br>
<br></span></font></div><div bgcolor="#FFFFFF" text="#000000"><font><span style="font-family:arial,helvetica,sans-serif">so, i've also downloaded evil 1.0.7..<br><br>^R (redo) sometimes just works, and sometimes it says "Symbol's function definition is void: redo" and i have to also hit u. why is it inconsistent?<br>
<br></span></font></div><div bgcolor="#FFFFFF" text="#000000"><font><span style="font-family:arial,helvetica,sans-serif">my .emacs follows:</span></font><br><font>(menu-bar-mode -1)<br>(global-set-key (kbd "TAB") 'tab-to-tab-stop)<br>
(setq-default truncate-lines t)<br>(setq require-final-newline nil)<br>(setq kept-old-versions 99)<br>(setq kept-new-versions 99)<br>(setq backup-by-copying-when-linked t)<br>(setq backup-directory-alist `((".*" . "~/.emacs.d/~/" )))<br>
(setq auto-save-file-name-transforms `((".*" "~/.emacs.d/~/" t)))<br>(setq auto-save-list-file-prefix "~/.emacs.d/~/" )<br>(setq evil-shift-width 1)<br>(setq evil-search-wrap nil)<br>
(setq evil-toggle-key "C-e")<br>(setq evil-want-C-u-scroll t)<br>(setq evil-want-C-w-in-emacs-state t)<br>(setq evil-want-change-word-to-end t)<br>(setq evil-emacs-state-cursor '("red" box));not apparently working<br>
(setq evil-visual-state-cursor '("blue" box))<br>(setq evil-motion-state-cursor '("green" box))<br>(setq evil-operator-state-cursor '("orange" box))<br>(add-to-list 'load-path "~/.emacs.d/evil/lib")<br>
(add-to-list 'load-path "~/.emacs.d/evil")<br>(require 'undo-tree)<br>(require 'evil)<br>(global-undo-tree-mode)<br>(evil-mode 1)<br>(define-key evil-normal-state-map "g" "1G")<br>
(define-key evil-motion-state-map "+" "Gz-``")<br>(define-key evil-normal-state-map [escape] 'keyboard-quit)<br>(define-key evil-visual-state-map [escape] 'keyboard-quit)<br>
(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit)<br>(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit)<br>(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit)<br>
(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit)<br>(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit)</font><br>(defun my-move-key (keymap-from keymap-to key)<br>
"Moves key binding from one keymap to another, deleting from the old location. "<br> (define-key keymap-to key (lookup-key keymap-from key))<br> (define-key keymap-from key nil))<br>(my-move-key evil-motion-state-map evil-normal-state-map (kbd "RET"))<br>
(my-move-key evil-motion-state-map evil-normal-state-map " ")<br></div>
</div>