contrib(git): add github-browse-file

* SPC g c b
This commit is contained in:
Ryan Phillips 2014-12-14 19:16:46 -06:00 committed by syl20bnr
parent 91b30fb89d
commit 6ecffec7a1
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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