Add github-browse-file
This commit is contained in:
parent
745256eabd
commit
a8c7336a2a
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue