feat: evil improvements & magit keybinds
This commit is contained in:
parent
1d9a1f8f59
commit
4e94b9ba4a
|
@ -9,11 +9,24 @@
|
|||
;;; evil - A Vi Layer inside of Emacs
|
||||
(use-package evil
|
||||
:custom
|
||||
(evil-want-keybinding nil) ; Make room for evil-collection
|
||||
(evil-want-integration t) ; Same as above
|
||||
(evil-undo-system 'undo-fu) ; Set the undo/redo system
|
||||
:config
|
||||
(evil-mode 1))
|
||||
|
||||
;; evil-collection - A collection of keybinds for evil
|
||||
(use-package evil-collection
|
||||
:custom (evil-collection-setup-minibuffer t)
|
||||
:init (evil-collection-init))
|
||||
|
||||
;; evil-escape - Escape from insert mode using jk
|
||||
(use-package evil-escape
|
||||
:config
|
||||
(setq-default evil-escape-key-sequence "jk")
|
||||
:init
|
||||
(evil-escape-mode 1))
|
||||
|
||||
;; undo-fu, used by evil for undo/redo functionality
|
||||
(use-package undo-fu)
|
||||
|
||||
|
|
|
@ -9,5 +9,15 @@
|
|||
"f f" '(find-file :wk "Find File")
|
||||
"f s" '(save-buffer :wk "Save Buffer"))
|
||||
|
||||
;; Magit
|
||||
(general-create-definer diancite/magit
|
||||
:prefix leader-key)
|
||||
|
||||
(diancite/magit
|
||||
:keymaps 'normal
|
||||
"m s" '(magit-status :wk "Status")
|
||||
"m d" '(magit-dispatch :wk "Dispatch")
|
||||
"m f" '(magit-status :wk "File Dispatch"))
|
||||
|
||||
;; Provide file file init.el
|
||||
(provide 'keybinds)
|
||||
|
|
Reference in a new issue