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/layers/+source-control/version-control/README.org

37 lines
1.1 KiB
Org Mode
Raw Normal View History

2015-06-10 16:44:30 +00:00
#+TITLE: Version-Control contribution layer for Spacemacs
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
2015-06-10 16:44:30 +00:00
* Table of Contents :TOC_4_org:noexport:
- [[Description][Description]]
- [[Features:][Features:]]
- [[Install][Install]]
- [[Layer][Layer]]
- [[Key Bindings][Key Bindings]]
2015-06-10 16:44:30 +00:00
* 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:
2015-06-10 16:44:30 +00:00
- 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 d g~ | Go to hunk |
| ~SPC g d N~ | Previous hunk |
| ~SPC g d n~ | Next hunk |
| ~SPC g d r~ | Revert hunk |