Add :git ex command (starts magit)
This commit is contained in:
parent
7763f7aa8c
commit
8085646b22
2 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,11 @@
|
||||||
(awhen (doom/git-root)
|
(awhen (doom/git-root)
|
||||||
(browse-url (concat it "/issues"))))
|
(browse-url (concat it "/issues"))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/git-magit ()
|
||||||
|
(interactive)
|
||||||
|
(call-interactively 'magit-status))
|
||||||
|
|
||||||
;;;###autoload (autoload 'doom:git-browse "defuns-git" nil t)
|
;;;###autoload (autoload 'doom:git-browse "defuns-git" nil t)
|
||||||
(evil-define-command doom:git-browse (&optional bang)
|
(evil-define-command doom:git-browse (&optional bang)
|
||||||
"Open the website for the current (or specified) version controlled FILE. If
|
"Open the website for the current (or specified) version controlled FILE. If
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
(ex! "gre[vert]" 'doom/vcs-revert-hunk)
|
(ex! "gre[vert]" 'doom/vcs-revert-hunk)
|
||||||
(ex! "gbr[owse]" 'doom:git-browse) ; show file in github/gitlab
|
(ex! "gbr[owse]" 'doom:git-browse) ; show file in github/gitlab
|
||||||
(ex! "gbi[ssues]" 'doom/git-issues) ; show github issues
|
(ex! "gbi[ssues]" 'doom/git-issues) ; show github issues
|
||||||
|
(ex! "git" 'doom/git-magit) ; show github issues
|
||||||
|
|
||||||
;; Dealing with buffers
|
;; Dealing with buffers
|
||||||
(ex! "k[ill]" 'doom/kill-real-buffer) ; Kill current buffer
|
(ex! "k[ill]" 'doom/kill-real-buffer) ; Kill current buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue