2015-11-02 05:16:13 +00:00
|
|
|
;;; config.el --- Version Control configuration File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-11-02 05:16:13 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-11-15 19:01:58 +00:00
|
|
|
(defvar version-control-global-margin t
|
|
|
|
"If non-nil, will show diff margins globally.")
|
2015-11-02 05:16:13 +00:00
|
|
|
|
2015-11-15 19:01:58 +00:00
|
|
|
(defvar version-control-diff-tool 'git-gutter+
|
2015-11-30 04:00:57 +00:00
|
|
|
"Options are `git-gutter', `git-gutter+', and `diff-hl' to show
|
|
|
|
version-control markers.")
|
2015-11-15 19:01:58 +00:00
|
|
|
|
2016-11-05 11:03:23 +00:00
|
|
|
(defvar version-control-diff-side 'right
|
|
|
|
"Side on which to show version-control markers.
|
|
|
|
Options are `left' and `right'.")
|
|
|
|
|
2015-11-15 19:01:58 +00:00
|
|
|
;; unchanged face
|
|
|
|
(defface git-gutter+-unchanged
|
|
|
|
'((t (:background "yellow")))
|
|
|
|
"face for unchanged lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface git-gutter:unchanged
|
|
|
|
'((t (:background "yellow")))
|
|
|
|
"face for unchanged lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
|
|
|
|
;; change face
|
|
|
|
(defface git-gutter+-modified
|
|
|
|
'((t (:foreground "magenta" :weight bold)))
|
|
|
|
"face for modified lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface git-gutter:modified
|
|
|
|
'((t (:foreground "magenta" :weight bold)))
|
|
|
|
"face for modified lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface diff-hl-change
|
|
|
|
'((default :foreground "blue3")
|
|
|
|
(((class color) (min-colors 88) (background light))
|
|
|
|
:background "#ddddff")
|
|
|
|
(((class color) (min-colors 88) (background dark))
|
|
|
|
:background "#333355"))
|
|
|
|
"Face used to highlight changed lines."
|
|
|
|
:group 'diff-hl)
|
|
|
|
|
|
|
|
;; added face
|
|
|
|
(defface git-gutter+-added
|
|
|
|
'((t (:foreground "green" :weight bold)))
|
|
|
|
"face for added lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface git-gutter:added
|
|
|
|
'((t (:foreground "green" :weight bold)))
|
|
|
|
"face for added lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface diff-hl-insert
|
|
|
|
'((default :inherit diff-added)
|
|
|
|
(((class color)) :foreground "green4"))
|
|
|
|
"Face used to highlight inserted lines."
|
|
|
|
:group 'diff-hl)
|
|
|
|
|
|
|
|
;; deleted face
|
|
|
|
(defface git-gutter+-deleted
|
|
|
|
'((t (:foreground "red" :weight bold)))
|
|
|
|
"face for deleted lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface git-gutter:deleted
|
|
|
|
'((t (:foreground "red" :weight bold)))
|
|
|
|
"face for deleted lines"
|
|
|
|
:group 'git-gutter+)
|
|
|
|
(defface diff-hl-delete
|
|
|
|
'((default :inherit diff-removed)
|
|
|
|
(((class color)) :foreground "red3"))
|
|
|
|
"Face used to highlight deleted lines."
|
|
|
|
:group 'diff-hl)
|