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/tools/perforce/README.md

49 lines
1.3 KiB
Markdown
Raw Normal View History

2014-12-14 05:15:47 +00:00
# Perforce contribution layer for Spacemacs
2014-12-24 06:03:49 +00:00
![logo](img/p4.png)
2014-12-14 05:15:47 +00:00
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [Perforce contribution layer for Spacemacs](#perforce-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Key bindings](#key-bindings)
<!-- markdown-toc end -->
## Description
2014-12-18 05:12:34 +00:00
This layer adds support for [Perforce][] (p4).
2014-12-14 05:15:47 +00:00
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
2015-02-18 03:36:12 +00:00
(setq-default dotspacemacs-configuration-layers '(perforce))
2014-12-14 05:15:47 +00:00
```
You'll have to install the `p4`` command line, [download page][].
Don't forget to setup the environment variables:
- `P4_PORT`
- `P4_CLIENT`
- `P4_USER`
- `P4_PASSWD`
## Key bindings
Key Binding | Description
---------------------|------------------------------------------------------------
<kbd>SPC p 4 a</kbd> | add a file in depot
<kbd>SPC p 4 d</kbd> | delete a file in depot
<kbd>SPC p 4 D</kbd> | p4-describe
<kbd>SPC p 4 e</kbd> | checkout a file
<kbd>SPC p 4 r</kbd> | rename a file
<kbd>SPC p 4 R</kbd> | revert a file
<kbd>SPC p 4 S</kbd> | submit CL
[Perforce]: http://www.perforce.com/
[download page]: http://www.perforce.com/downloads