Define prefix commands for git layer
This commit is contained in:
parent
7945bf6b36
commit
9ba237b77a
|
@ -1,2 +1,9 @@
|
||||||
(defvar git-enable-github-support nil
|
(defvar git-enable-github-support nil
|
||||||
"If non nil the Github packages and extensions are enabled.")
|
"If non nil the Github packages and extensions are enabled.")
|
||||||
|
|
||||||
|
(setq git/key-binding-prefixes '(("gh" . "smeargle")))
|
||||||
|
(when git-enable-github-support
|
||||||
|
(push (cons "gf" "file") git/key-binding-prefixes)
|
||||||
|
(push (cons "gg" "gist") git/key-binding-prefixes))
|
||||||
|
(mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
|
||||||
|
git/key-binding-prefixes)
|
||||||
|
|
|
@ -130,11 +130,10 @@ implementation."
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"gs" 'magit-status
|
|
||||||
"gb" 'magit-blame-mode
|
"gb" 'magit-blame-mode
|
||||||
"gC" 'magit-commit
|
|
||||||
"gl" 'magit-log
|
"gl" 'magit-log
|
||||||
)
|
"gs" 'magit-status
|
||||||
|
"gC" 'magit-commit)
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(spacemacs|hide-lighter magit-auto-revert-mode)
|
(spacemacs|hide-lighter magit-auto-revert-mode)
|
||||||
|
|
Loading…
Reference in a new issue