Add github-clone to github layer
- allows cloning and forking from within emacs
This commit is contained in:
parent
3c7658daa6
commit
9bcd40b7b0
|
@ -10,6 +10,7 @@
|
||||||
- [[Key Bindings][Key Bindings]]
|
- [[Key Bindings][Key Bindings]]
|
||||||
- [[magit-gh-pulls][magit-gh-pulls]]
|
- [[magit-gh-pulls][magit-gh-pulls]]
|
||||||
- [[gist.el][gist.el]]
|
- [[gist.el][gist.el]]
|
||||||
|
- [[Clone repositories][Clone repositories]]
|
||||||
- [[Browse files][Browse files]]
|
- [[Browse files][Browse files]]
|
||||||
|
|
||||||
* Description
|
* 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/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
|
- [[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.
|
browser.
|
||||||
|
- [[https://github.com/dgtized/github-clone.el][Github clone]] allows for easy cloning and forking of repositories.
|
||||||
|
|
||||||
* Install
|
* Install
|
||||||
|
|
||||||
|
@ -80,6 +82,12 @@ In the gist list buffer:
|
||||||
| ~V~ | =visual-line state= |
|
| ~V~ | =visual-line state= |
|
||||||
| ~y~ | print URL and copy it |
|
| ~y~ | print URL and copy it |
|
||||||
|
|
||||||
|
** Clone repositories
|
||||||
|
|
||||||
|
| Key Binding | Description |
|
||||||
|
|-------------+--------------------------------------|
|
||||||
|
| ~SPC g c~ | clone and optionally fork repository |
|
||||||
|
|
||||||
** Browse files
|
** Browse files
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
gist
|
gist
|
||||||
git-link
|
git-link
|
||||||
github-browse-file
|
github-browse-file
|
||||||
|
github-clone
|
||||||
;; not up to date
|
;; not up to date
|
||||||
;; helm-gist
|
;; helm-gist
|
||||||
magit-gh-pulls
|
magit-gh-pulls
|
||||||
|
@ -62,6 +63,13 @@
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"gfb" 'github-browse-file)))
|
"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 ()
|
(defun github/init-git-link ()
|
||||||
(use-package git-link
|
(use-package git-link
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Loading…
Reference in a new issue