This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/git/config.el
2015-01-27 00:17:51 -05:00

34 lines
1 KiB
EmacsLisp

;;; 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
;; Variables
(defvar git-enable-github-support nil
"If non nil the Github packages and extensions are enabled.")
(defvar git-enable-magit-svn-plugin nil
"If non nil `magit-svn' plugin is enabled.")
(defvar git-magit-status-fullscreen nil
"If non nil magit-status buffer is displayed in fullscreen.")
(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)