X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig%2Finit-evil.el;h=5dcdeb623accc2b069038df2ef256783aa12a485;hb=d62a6be2ecd4a87350fabd19acb685b359603f22;hp=96aac9d8ab0cb974f68e7b99f9880759f2646256;hpb=beba09bb17c9980fec67fefaa22918b6b6960420;p=dotfiles.git diff --git a/emacs.d/config/init-evil.el b/emacs.d/config/init-evil.el index 96aac9d..5dcdeb6 100644 --- a/emacs.d/config/init-evil.el +++ b/emacs.d/config/init-evil.el @@ -36,51 +36,34 @@ ;(evil-leader/set-key "f" 'helm-ls-git-ls) (evil-leader/set-key "b" 'helm-mini) (evil-leader/set-key "m" 'helm-mini) -;(evil-leader/set-key "p" 'helm-projectile-switch-project) -;(define-key evil-normal-state-map "M-n" 'persp-next) -;(define-key evil-normal-state-map "\M-p" 'persp-prev) - - -;(evil-leader/set-key "l" 'persp-switch) -;(evil-leader/set-key "g" 'persp-switch) (setq key-chord-two-keys-delay 0.5) (key-chord-define evil-insert-state-map "jj" 'evil-normal-state) (key-chord-define evil-emacs-state-map "jj" 'evil-normal-state) -;(key-chord-define evil-normal-state-map ";w" 'save-buffer) (key-chord-define evil-normal-state-map ";s" 'split-window-below) (key-chord-define evil-normal-state-map ";v" 'split-window-right) -;(key-chord-define evil-normal-state-map ";;" 'helm-find-files) (key-chord-mode 1) (define-key evil-normal-state-map [escape] 'keyboard-quit) (define-key evil-visual-state-map [escape] 'keyboard-quit) -;(define-key minibuffer-local-map [jscape] 'minibuffer-keyboard-quit) -;(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) +;(define-key minibuffer-local-map [escape] 'keyboard-escape-quit) +;(define-key minibuffer-local-ns-map [escape] 'keyboard-escape-quit) ;(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) ;(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) ;(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) - -;; implement some missing vim normal command -;; g-; - goto last change -;; g - - -;; cursor shape (setq evil-emacs-state-cursor '("red" box)) (setq evil-normal-state-cursor '("green" box)) (setq evil-visual-state-cursor '("orange" box)) (setq evil-insert-state-cursor '("red" bar)) (setq evil-replace-state-cursor '("red" bar)) (setq evil-operator-state-cursor '("red" hollow)) -;;Enter an emacs mode in a given state http://wikemacs.org/wiki/Evil (loop for (mode . state) in '( (nrepl-mode . insert) (pylookup-mode . emacs)