Add github-browse-file

This commit is contained in:
Henrik Lissner 2015-10-26 01:35:19 -04:00
parent 745256eabd
commit a8c7336a2a
2 changed files with 8 additions and 0 deletions

View file

@ -13,5 +13,12 @@
:init (setq diff-hl-draw-borders nil)
:config (global-diff-hl-mode +1))
(use-package github-browse-file
:commands (narf:github-browse-file github-browse-file github-browse-file-blame)
:config
(evil-define-command narf:github-browse-file (&optional bang)
(interactive "<!>")
(if bang (github-browse-file-blame) (github-browse-file))))
(provide 'core-vcs)
;;; core-vcs.el ends here

View file

@ -15,6 +15,7 @@
(exmap "echo" 'narf:echo)
(exmap "en[ew]" 'narf:file-create)
(exmap "full[scr]" 'narf:toggle-fullscreen)
(exmap "gith[ub]" 'narf:github-browse-file)
(exmap "ini" 'narf:ido-find-file-in-emacsd)
(exmap "k[ill]" 'kill-this-buffer) ; Kill current buffer
(exmap "k[ill]all" 'narf:kill-all-buffers) ; Kill all buffers (bang = in project)