about summary refs log tree commit diff
path: root/init-evil.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-10-17T12·21+0200
committerVincent Ambo <vincent@spotify.com>2013-10-17T12·21+0200
commit1ce5c5bdaac3646b7a833932bfcc0baf2b198587 (patch)
tree6b7ebb1d57bc2135904417b37dcbaca563fc2eb6 /init-evil.el
parent2acc9f23fa214d4b661387c17d4c19312eb49c35 (diff)
Evil configuration file
Diffstat (limited to 'init-evil.el')
-rw-r--r--init-evil.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/init-evil.el b/init-evil.el
new file mode 100644
index 000000000000..0c4780fddf48
--- /dev/null
+++ b/init-evil.el
@@ -0,0 +1,23 @@
+; Basic vim emulation
+
+(evil-mode t)
+(global-evil-tabs-mode 1)
+
+(evil-ex-define-cmd "Exp[lore]" 'dired-jump)
+(evil-ex-define-cmd "color[scheme]" 'customize-themes)
+
+(evil-define-key 'normal global-map
+  "\\\\w" 'evil-ace-jump-word-mode)
+
+(evil-define-key 'normal clojure-mode-map
+  "\M-q" 'paredit-reindent-defun
+  "gK" 'nrepl-src
+  "K"  'ac-nrepl-popup-doc)
+
+(setq evil-default-cursor '("#ffdd33"))
+
+;;; Uncomment these key-chord lines if you like that "remap 'jk' to ESC" trick.
+;; (key-chord-mode t)
+;; (key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
+
+(provide 'init-evil)