Adds nuanced evil-mode settings
This commit is contained in:
parent
143404bcf7
commit
893956db0c
1 changed files with 5 additions and 1 deletions
|
@ -61,6 +61,10 @@
|
||||||
(add-hook 'elixir-mode-hook 'alchemist-mode)
|
(add-hook 'elixir-mode-hook 'alchemist-mode)
|
||||||
|
|
||||||
|
|
||||||
|
;; Evil Settings
|
||||||
|
(require 'evil)
|
||||||
|
|
||||||
|
|
||||||
;; Buffer scrolling functions
|
;; Buffer scrolling functions
|
||||||
(global-set-key (kbd "M-n") (lambda () (interactive) (scroll-up 1) (next-line 1)))
|
(global-set-key (kbd "M-n") (lambda () (interactive) (scroll-up 1) (next-line 1)))
|
||||||
(global-set-key (kbd "M-p") (lambda () (interactive) (scroll-down 1) (previous-line 1)))
|
(global-set-key (kbd "M-p") (lambda () (interactive) (scroll-down 1) (previous-line 1)))
|
||||||
|
@ -95,7 +99,7 @@
|
||||||
(defun bootstrap-evil-mode()
|
(defun bootstrap-evil-mode()
|
||||||
"Custom evil-mode boostrapping"
|
"Custom evil-mode boostrapping"
|
||||||
(interactive)
|
(interactive)
|
||||||
(evil-mode)
|
(evil-local-mode)
|
||||||
(define-key evil-insert-state-map (kbd "j k") 'evil-force-normal-state)
|
(define-key evil-insert-state-map (kbd "j k") 'evil-force-normal-state)
|
||||||
(define-key evil-normal-state-map (kbd "H") 'evil-beginning-of-line)
|
(define-key evil-normal-state-map (kbd "H") 'evil-beginning-of-line)
|
||||||
(define-key evil-normal-state-map (kbd "L") 'evil-end-of-line))
|
(define-key evil-normal-state-map (kbd "L") 'evil-end-of-line))
|
||||||
|
|
Loading…
Reference in a new issue