Define prefix commands for git layer

This commit is contained in:
syl20bnr 2014-12-22 23:06:13 -05:00
parent 7945bf6b36
commit 9ba237b77a
2 changed files with 9 additions and 3 deletions

View file

@ -1,2 +1,9 @@
(defvar git-enable-github-support nil
"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)

View file

@ -130,11 +130,10 @@ implementation."
:defer t
:init
(evil-leader/set-key
"gs" 'magit-status
"gb" 'magit-blame-mode
"gC" 'magit-commit
"gl" 'magit-log
)
"gs" 'magit-status
"gC" 'magit-commit)
:config
(progn
(spacemacs|hide-lighter magit-auto-revert-mode)