<div dir="ltr">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000"><a href="http://wikemacs.org/index.php/Evil">wikemacs.org/index.php/Evil</a> says &quot;Evil comes prebuilt in emacs24&quot;<font>.<span style="font-family:arial,helvetica,sans-serif">  i have 24.3.1 but can&#39;t find evil with it.  (require &#39;evil) got &quot;File error: Cannot open load file, evil&quot;.  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&#39;ve also downloaded evil 1.0.7..<br><br>^R (redo) sometimes just works, and sometimes it says &quot;Symbol&#39;s function definition is void: redo&quot; 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 &quot;TAB&quot;) &#39;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         `((&quot;.*&quot; . &quot;~/.emacs.d/~/&quot;  )))<br>

(setq auto-save-file-name-transforms `((&quot;.*&quot;   &quot;~/.emacs.d/~/&quot; t)))<br>(setq auto-save-list-file-prefix               &quot;~/.emacs.d/~/&quot;    )<br>(setq evil-shift-width 1)<br>(setq evil-search-wrap nil)<br>

(setq evil-toggle-key &quot;C-e&quot;)<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       &#39;(&quot;red&quot; box));not apparently working<br>

(setq evil-visual-state-cursor     &#39;(&quot;blue&quot; box))<br>(setq evil-motion-state-cursor    &#39;(&quot;green&quot; box))<br>(setq evil-operator-state-cursor &#39;(&quot;orange&quot; box))<br>(add-to-list &#39;load-path &quot;~/.emacs.d/evil/lib&quot;)<br>

(add-to-list &#39;load-path &quot;~/.emacs.d/evil&quot;)<br>(require &#39;undo-tree)<br>(require &#39;evil)<br>(global-undo-tree-mode)<br>(evil-mode 1)<br>(define-key evil-normal-state-map &quot;g&quot; &quot;1G&quot;)<br>

(define-key evil-motion-state-map &quot;+&quot; &quot;Gz-``&quot;)<br>(define-key evil-normal-state-map           [escape]            &#39;keyboard-quit)<br>(define-key evil-visual-state-map           [escape]            &#39;keyboard-quit)<br>

(define-key minibuffer-local-map            [escape] &#39;minibuffer-keyboard-quit)<br>(define-key minibuffer-local-ns-map         [escape] &#39;minibuffer-keyboard-quit)<br>(define-key minibuffer-local-isearch-map    [escape] &#39;minibuffer-keyboard-quit)<br>

(define-key minibuffer-local-must-match-map [escape] &#39;minibuffer-keyboard-quit)<br>(define-key minibuffer-local-completion-map [escape] &#39;minibuffer-keyboard-quit)</font><br>(defun my-move-key (keymap-from keymap-to key)<br>

  &quot;Moves key binding from one keymap to another, deleting from the old location. &quot;<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 &quot;RET&quot;))<br>

(my-move-key evil-motion-state-map evil-normal-state-map &quot; &quot;)<br></div>

</div>