Move git defvars at the beginning of the layer

This commit is contained in:
syl20bnr 2015-01-15 09:49:32 -05:00
parent baea1b5279
commit fa70d5993f

View file

@ -10,18 +10,6 @@
;;
;;; License: GPLv3
;; Command prefixes
(defvar git-enable-github-support nil
"If non nil enable Github packages.")
(setq git/key-binding-prefixes '(("gh" . "gutter-hunks/highlight")))
(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)
;; Variables
(defvar git-enable-github-support nil
@ -32,3 +20,12 @@
(defvar git-gutter-use-fringe t
"If non nil the fringe is used to display git-gutter icons.")
;; Command prefixes
(setq git/key-binding-prefixes '(("gh" . "gutter-hunks/highlight")))
(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)