[Emacs] Move Magit keybinds to package configuration
This commit is contained in:
parent
605fb06ab2
commit
3a13382c54
@ -1702,19 +1702,33 @@ doing and what Git is doing! In short, I absolutely love it!
|
|||||||
:defer t
|
:defer t
|
||||||
:custom
|
:custom
|
||||||
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)
|
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)
|
||||||
:config
|
:general
|
||||||
(progn
|
(:keymaps '(git-rebase-mode-map)
|
||||||
(general-define-key
|
"C-t" #'evil-next-line
|
||||||
:keymaps '(git-rebase-mode-map)
|
"C-s" #'evil-previous-line)
|
||||||
"C-t" #'evil-next-line
|
(:keymaps 'git-rebase-mode-map
|
||||||
"C-s" #'evil-previous-line)
|
:states 'normal
|
||||||
(general-define-key
|
:prefix ","
|
||||||
:keymaps 'git-rebase-mode-map
|
"," #'with-editor-finish
|
||||||
:state 'normal
|
"k" #'with-editor-cancel
|
||||||
:prefix ","
|
"a" #'with-editor-cancel)
|
||||||
"," #'with-editor-finish
|
(:states 'normal
|
||||||
"k" #'with-editor-cancel
|
:prefix "SPC"
|
||||||
"a" #'with-editor-cancel)))
|
"g" '(nil :wk "git")
|
||||||
|
"gb" #'magit-blame
|
||||||
|
"gc" #'magit-clone
|
||||||
|
"gd" #'magit-dispatch
|
||||||
|
"gi" #'magit-init
|
||||||
|
"gs" #'magit-status
|
||||||
|
"gy" #'my/yadm
|
||||||
|
"gS" #'magit-stage-file
|
||||||
|
"gU" #'magit-unstage-file
|
||||||
|
|
||||||
|
"gf" '(nil :wk "file")
|
||||||
|
"gfd" #'magit-diff
|
||||||
|
"gfc" #'magit-file-checkout
|
||||||
|
"gfl" #'magit-file-dispatch
|
||||||
|
"gfF" #'magit-find-file))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
[[https://github.com/alphapapa][Alphapapa]] also created an awesome package for Magit: magit-todos which
|
[[https://github.com/alphapapa][Alphapapa]] also created an awesome package for Magit: magit-todos which
|
||||||
@ -3914,21 +3928,6 @@ Undefining some stuff to make keybind prefixes work correctly.
|
|||||||
"fr" #'counsel-recentf
|
"fr" #'counsel-recentf
|
||||||
"fs" #'save-buffer
|
"fs" #'save-buffer
|
||||||
|
|
||||||
"g" '(nil :wk "git")
|
|
||||||
"gc" #'magit-clone
|
|
||||||
"gd" #'magit-dispatch
|
|
||||||
"gi" #'magit-init
|
|
||||||
"gs" #'magit-status
|
|
||||||
"gy" #'my/yadm
|
|
||||||
"gS" #'magit-stage-file
|
|
||||||
"gU" #'magit-unstage-file
|
|
||||||
|
|
||||||
"gf" '(nil :wk "file")
|
|
||||||
"gfd" #'magit-diff
|
|
||||||
"gfc" #'magit-file-checkout
|
|
||||||
"gfl" #'magit-file-dispatch
|
|
||||||
"gfF" #'magit-find-file
|
|
||||||
|
|
||||||
"h" '(nil :wk "help")
|
"h" '(nil :wk "help")
|
||||||
"hk" #'which-key-show-top-level
|
"hk" #'which-key-show-top-level
|
||||||
"hd" '(nil :wk "describe")
|
"hd" '(nil :wk "describe")
|
||||||
|
Loading…
Reference in New Issue
Block a user