2015-01-14 04:12:56 +00:00
|
|
|
;;; config.el --- Git Layer configuration File for Spacemacs
|
|
|
|
;;
|
|
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2014-12-14 19:54:14 +00:00
|
|
|
(defvar git-enable-github-support nil
|
|
|
|
"If non nil the Github packages and extensions are enabled.")
|
2014-12-23 04:06:13 +00:00
|
|
|
|
2014-12-23 04:18:58 +00:00
|
|
|
(setq git/key-binding-prefixes '(("gh" . "gutter-hunks/highlight")))
|
2014-12-29 13:22:44 +00:00
|
|
|
(setq magit-completing-read-function 'magit-ido-completing-read)
|
|
|
|
|
2014-12-23 04:06:13 +00:00
|
|
|
(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)
|