evil questions
gregory mott
greg at whitleymott.net
Thu Dec 12 04:15:46 CET 2013
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 " ")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20131211/32163e78/attachment.htm
More information about the implementations-list
mailing list