spacemacs/contrib/git/config.el
Andreas Liljeqvist 8c289e587d Use "magit-ido-completing-read" for completion.
Provides better completion throughout Magit.
Best used together with: "(setq magit-repo-dirs '("~/git/"))".
2014-12-29 22:48:11 -05:00

12 lines
471 B
EmacsLisp

(defvar git-enable-github-support nil
"If non nil the Github packages and extensions are enabled.")
(setq git/key-binding-prefixes '(("gh" . "gutter-hunks/highlight")))
(setq magit-completing-read-function 'magit-ido-completing-read)
(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)