Banned arrow keys in insert mode
This commit is contained in:
parent
5fad0abd17
commit
cffdaab261
1 changed files with 12 additions and 2 deletions
14
emacs/.emacs
14
emacs/.emacs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue