emacs - evil: disable arrow keys in insert mode

This commit is contained in:
madmaurice 2017-10-14 12:42:45 +02:00
parent 2e863ad122
commit 8f4ce84497

View file

@ -280,6 +280,10 @@
(define-key evil-normal-state-map "gn" 'my/evil-go-forward) (define-key evil-normal-state-map "gn" 'my/evil-go-forward)
(define-key evil-motion-state-map [down-mouse-1] 'silence) (define-key evil-motion-state-map [down-mouse-1] 'silence)
(define-key evil-motion-state-map [mouse-1] 'silence) (define-key evil-motion-state-map [mouse-1] 'silence)
(define-key evil-insert-state-map (kbd "<up>") 'nope)
(define-key evil-insert-state-map (kbd "<down>") 'nope)
(define-key evil-insert-state-map (kbd "<left>") 'nope)
(define-key evil-insert-state-map (kbd "<right>") 'nope)
(define-key evil-normal-state-map (kbd "#") (define-key evil-normal-state-map (kbd "#")
(lambda () (interactive) (my/swiper-thing-at-point 'word))) (lambda () (interactive) (my/swiper-thing-at-point 'word)))
(define-key evil-normal-state-map (kbd "*") (define-key evil-normal-state-map (kbd "*")