Add :git ex command (starts magit)

This commit is contained in:
Henrik Lissner 2016-09-08 12:21:13 +02:00
parent 7763f7aa8c
commit 8085646b22
2 changed files with 6 additions and 0 deletions

View file

@ -12,6 +12,11 @@
(awhen (doom/git-root)
(browse-url (concat it "/issues"))))
;;;###autoload
(defun doom/git-magit ()
(interactive)
(call-interactively 'magit-status))
;;;###autoload (autoload 'doom:git-browse "defuns-git" nil t)
(evil-define-command doom:git-browse (&optional bang)
"Open the website for the current (or specified) version controlled FILE. If

View file

@ -54,6 +54,7 @@
(ex! "gre[vert]" 'doom/vcs-revert-hunk)
(ex! "gbr[owse]" 'doom:git-browse) ; show file in github/gitlab
(ex! "gbi[ssues]" 'doom/git-issues) ; show github issues
(ex! "git" 'doom/git-magit) ; show github issues
;; Dealing with buffers
(ex! "k[ill]" 'doom/kill-real-buffer) ; Kill current buffer