diff --git a/core/core-vcs.el b/core/core-vcs.el index e2801062c..ef7059e29 100644 --- a/core/core-vcs.el +++ b/core/core-vcs.el @@ -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 diff --git a/private/my-commands.el b/private/my-commands.el index e6a549e45..85e04f8a6 100644 --- a/private/my-commands.el +++ b/private/my-commands.el @@ -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)