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)
|
(package-initialize)
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
||||||
|
;; Nope function
|
||||||
|
(defun nope ()
|
||||||
|
(interactive)
|
||||||
|
(message "Nope!"))
|
||||||
|
|
||||||
;; Quote
|
;; 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")
|
(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)
|
'(menu-bar-mode nil)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(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)
|
'(scroll-bar-mode nil)
|
||||||
'(shell-pop-shell-type
|
'(shell-pop-shell-type
|
||||||
(quote
|
(quote
|
||||||
|
@ -119,6 +124,7 @@
|
||||||
(use-package org
|
(use-package org
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
|
||||||
;; Evil-mode
|
;; Evil-mode
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -127,7 +133,11 @@
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
(setq evil-ex-substitute-global t)
|
(setq evil-ex-substitute-global t)
|
||||||
(define-key evil-normal-state-map "/" 'swiper)
|
(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
|
;; Auto-Complete
|
||||||
(use-package auto-complete
|
(use-package auto-complete
|
||||||
|
|
Loading…
Reference in a new issue