wikemacs.org/index.php/Evil says "Evil comes prebuilt in emacs24". 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? so, i've also downloaded evil 1.0.7.. ^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? my .emacs follows: (menu-bar-mode -1) (global-set-key (kbd "TAB") 'tab-to-tab-stop) (setq-default truncate-lines t) (setq require-final-newline nil) (setq kept-old-versions 99) (setq kept-new-versions 99) (setq backup-by-copying-when-linked t) (setq backup-directory-alist `((".*" . "~/.emacs.d/~/" ))) (setq auto-save-file-name-transforms `((".*" "~/.emacs.d/~/" t))) (setq auto-save-list-file-prefix "~/.emacs.d/~/" ) (setq evil-shift-width 1) (setq evil-search-wrap nil) (setq evil-toggle-key "C-e") (setq evil-want-C-u-scroll t) (setq evil-want-C-w-in-emacs-state t) (setq evil-want-change-word-to-end t) (setq evil-emacs-state-cursor '("red" box));not apparently working (setq evil-visual-state-cursor '("blue" box)) (setq evil-motion-state-cursor '("green" box)) (setq evil-operator-state-cursor '("orange" box)) (add-to-list 'load-path "~/.emacs.d/evil/lib") (add-to-list 'load-path "~/.emacs.d/evil") (require 'undo-tree) (require 'evil) (global-undo-tree-mode) (evil-mode 1) (define-key evil-normal-state-map "g" "1G") (define-key evil-motion-state-map "+" "Gz-``") (define-key evil-normal-state-map [escape] 'keyboard-quit) (define-key evil-visual-state-map [escape] 'keyboard-quit) (define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) (defun my-move-key (keymap-from keymap-to key) "Moves key binding from one keymap to another, deleting from the old location. " (define-key keymap-to key (lookup-key keymap-from key)) (define-key keymap-from key nil)) (my-move-key evil-motion-state-map evil-normal-state-map (kbd "RET")) (my-move-key evil-motion-state-map evil-normal-state-map " ")
On 12.12.2013 04:15, gregory mott wrote:
wikemacs.org/index.php/Evil says "Evil comes prebuilt in emacs24". 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?
I have no idea who wrote this, but I can assure that Evil is not shipped with Emacs 24 (or any other version). That would be surprising as I never signed the necessary legal papers.
so, i've also downloaded evil 1.0.7..
^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?
No idea why it does not work. When undo-tree is loaded before evil (which is the case in your config) then Evil should automatically use those functions. So what do you mean by "it works sometimes"? It does not work in some specific buffers? It's hard to tell what's going on as long as we can not reproduce the problem (deterministically). Btw, you may also try the development version of evil which is available from "melpa". It might work better and contain some bug fixes. Frank
participants (2)
-
Frank Fischer -
gregory mott