Add github-clone to github layer

- allows cloning and forking from within emacs
This commit is contained in:
Christoph Paulik 2015-10-31 02:28:58 +01:00 committed by syl20bnr
parent 3c7658daa6
commit 9bcd40b7b0
2 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,7 @@
- [[Key Bindings][Key Bindings]]
- [[magit-gh-pulls][magit-gh-pulls]]
- [[gist.el][gist.el]]
- [[Clone repositories][Clone repositories]]
- [[Browse files][Browse files]]
* Description
@ -21,6 +22,7 @@ This layers adds support for [[http://github.com][Github]].
- [[https://github.com/defunkt/gist.el][gist.el]]: full-featured mode to browse and post Github gists.
- [[https://github.com/osener/github-browse-file][github-browse-file]] and [[https://github.com/sshaw/git-link][git-link]]: quickly browse github URL in your
browser.
- [[https://github.com/dgtized/github-clone.el][Github clone]] allows for easy cloning and forking of repositories.
* Install
@ -80,6 +82,12 @@ In the gist list buffer:
| ~V~ | =visual-line state= |
| ~y~ | print URL and copy it |
** Clone repositories
| Key Binding | Description |
|-------------+--------------------------------------|
| ~SPC g c~ | clone and optionally fork repository |
** Browse files
| Key Binding | Description |

View File

@ -15,6 +15,7 @@
gist
git-link
github-browse-file
github-clone
;; not up to date
;; helm-gist
magit-gh-pulls
@ -62,6 +63,13 @@
(evil-leader/set-key
"gfb" 'github-browse-file)))
(defun github/init-github-clone ()
(use-package github-clone
:defer t
:init
(evil-leader/set-key
"gc" 'github-clone)))
(defun github/init-git-link ()
(use-package git-link
:defer t