#+TITLE: Version-Control contribution layer for Spacemacs

* Table of Contents                                                   :TOC@4:
 - [[#description][Description]]
     - [[#features][Features:]]
 - [[#install][Install]]
     - [[#layer][Layer]]
 - [[#key-bindings][Key Bindings]]

* Description

This layers adds general configuration for [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html][Emacs VC]].
It should work with all VC backends such as Git, Mercurial, Bazaar, SVN, etc...

** Features:
- highlights uncommitted changes in the fringe or margin with [[https://github.com/dgutov/diff-hl][diff-hl]]

* Install

** Layer

To use this contribution add it to your =~/.spacemacs=

#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(version-control))
#+END_SRC

* Key Bindings

| Key Binding | Description   |
|-------------+---------------|
| ~g h g~     | Go to hunk    |
| ~g h N~     | Previous hunk |
| ~g h n~     | Next hunk     |
| ~g h r~     | Revert hunk   |

#+TITLE: Version-Control contribution layer for Spacemacs

* Table of Contents                                                   :TOC@4:
 - [[#description][Description]]
     - [[#features][Features:]]
 - [[#install][Install]]
     - [[#layer][Layer]]
 - [[#key-bindings][Key Bindings]]

* Description

This layers adds general configuration for [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html][Emacs VC]].
It should work with all VC backends such as Git, Mercurial, Bazaar, SVN, etc...

** Features:
- highlights uncommitted changes in the fringe or margin with [[https://github.com/dgutov/diff-hl][diff-hl]]

* Install

** Layer

To use this contribution add it to your =~/.spacemacs=

#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(version-control))
#+END_SRC

* Key Bindings

| Key Binding | Description   |
|-------------+---------------|
| ~SPC g h g~     | Go to hunk    |
| ~SPC g h N~     | Previous hunk |
| ~SPC g h n~     | Next hunk     |
| ~SPC g h r~     | Revert hunk   |

Fix the document of version control keybinding
Fix the document of version control keybinding