contrib(git): add github-browse-file
* SPC g c b
This commit is contained in:
parent
91b30fb89d
commit
6ecffec7a1
|
@ -15,6 +15,7 @@
|
|||
- [Github support](#github-support)
|
||||
- [magit-gh-pulls](#magit-gh-pulls)
|
||||
- [gist.el](#gistel)
|
||||
- [github-browse-file](#github-browse-file)
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
|
@ -225,3 +226,10 @@ In the gist list buffer:
|
|||
[git-messenger]: https://github.com/syohex/emacs-git-messenger
|
||||
[magit-gh-pulls]: https://github.com/sigma/magit-gh-pulls
|
||||
[gist.el]: https://github.com/defunkt/gist.el
|
||||
|
||||
### github-browse-file
|
||||
|
||||
Key Binding | Description
|
||||
----------------------|------------------------------------------------------------
|
||||
<kbd>SPC g f b</kbd> | browse to file on github
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ which require an initialization must be listed explicitly in the list.")
|
|||
(mapc (lambda (x) (push x git-packages))
|
||||
'(
|
||||
gist
|
||||
github-browse-file
|
||||
;; not up to date
|
||||
;; helm-gist
|
||||
magit-gh-pulls
|
||||
|
@ -197,6 +198,13 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:init (add-hook 'magit-mode-hook 'turn-on-magit-gh-pulls)
|
||||
:config (spacemacs|diminish magit-gh-pulls-mode "Github-PR")))
|
||||
|
||||
(defun git/init-github-browse-file ()
|
||||
(use-package github-browse-file
|
||||
:defer t
|
||||
:init
|
||||
(evil-leader/set-key
|
||||
"gfb" 'github-browse-file)))
|
||||
|
||||
(defun git/init-magit-gitflow ()
|
||||
(use-package magit-gitflow
|
||||
:commands turn-on-magit-gitflow
|
||||
|
|
Loading…
Reference in a new issue