Move evil & corrective keybinds to respective modules

Keybinds that correct behavior or provide or extend vim functionality
were moved to their respective modules, or to the :editor evil module.

Keybinds in the global space, that are particularly opinionated but
potentially harmful or imposing as a default, or likely for users to
change (like leader keys), are kept in config/default.
This commit is contained in:
Henrik Lissner 2019-10-26 21:34:44 -04:00
parent c360f0dceb
commit 3c6f48f9ec
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
11 changed files with 479 additions and 508 deletions

View file

@ -15,7 +15,11 @@
("^\\vc-c" :select t))) ; *vc-change-log*
(set-evil-initial-state!
'(vc-annotate-mode vc-git-log-view-mode)
'normal))
'normal)
;; Clean up after itself
(define-key vc-annotate-mode-map [remap quit-window] #'kill-current-buffer))
(after! git-timemachine
@ -34,6 +38,12 @@
(add-transient-hook! #'git-timemachine-blame (require 'magit-blame)))
(map! :map git-timemachine-mode-map
:n "C-p" #'git-timemachine-show-previous-revision
:n "C-n" #'git-timemachine-show-next-revision
:n "[[" #'git-timemachine-show-previous-revision
:n "]]" #'git-timemachine-show-next-revision
:n "q" #'git-timemachine-quit
:n "gb" #'git-timemachine-blame
:n "gtc" #'git-timemachine-show-commit))