Banned arrow keys in insert mode

This commit is contained in:
madmaurice 2017-05-27 01:10:53 +02:00
parent 5fad0abd17
commit cffdaab261

View file

@ -1,6 +1,11 @@
(package-initialize)
(require 'package)
;; Nope function
(defun nope ()
(interactive)
(message "Nope!"))
;; Quote
(setq initial-scratch-message ";; Simplicity and elegance are unpopular because\n;; they require hard work and discipline to achieve\n;; and education to be appreciated.\n;;\n;; - Dijkstra\n\n")
@ -35,7 +40,7 @@
'(menu-bar-mode nil)
'(package-selected-packages
(quote
(swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil)))
(shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil)))
'(scroll-bar-mode nil)
'(shell-pop-shell-type
(quote
@ -119,6 +124,7 @@
(use-package org
:ensure t)
;; Evil-mode
(use-package evil
:ensure t
@ -127,7 +133,11 @@
(evil-mode 1)
(setq evil-ex-substitute-global t)
(define-key evil-normal-state-map "/" 'swiper)
(setq-default evil-cross-lines t))
(setq-default evil-cross-lines t)
(define-key evil-insert-state-map (kbd "<up>") 'nope)
(define-key evil-insert-state-map (kbd "<left>") 'nope)
(define-key evil-insert-state-map (kbd "<right>") 'nope)
(define-key evil-insert-state-map (kbd "<down>") 'nope))
;; Auto-Complete
(use-package auto-complete