Merge pull request #1076 from filalex77/magit-forge
[tools/magit] Add magit-forge
This commit is contained in:
commit
9f96e3eae8
3 changed files with 13 additions and 2 deletions
|
@ -629,7 +629,9 @@
|
|||
:desc "Git stage file" "S" #'magit-stage-file
|
||||
:desc "Git unstage file" "U" #'magit-unstage-file
|
||||
:desc "Magit push popup" "p" #'magit-push-popup
|
||||
:desc "Magit pull popup" "P" #'magit-pull-popup)
|
||||
:desc "Magit pull popup" "P" #'magit-pull-popup
|
||||
(:when (featurep! :tools magit +forge)
|
||||
:desc "Forge dispatch" "F" #'forge-dispatch))
|
||||
(:when (featurep! :tools gist)
|
||||
:desc "List gists" "G" #'+gist:list))
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ what features are available.")
|
|||
|
||||
(def-package! magithub
|
||||
:after magit
|
||||
:unless (featurep! :tools magit +forge)
|
||||
:preface
|
||||
;; Magithub is not well-behaved, so this needs to be set early
|
||||
(setq magithub-dir (concat doom-etc-dir "magithub/"))
|
||||
|
@ -97,3 +98,9 @@ what features are available.")
|
|||
(evil-define-key* evil-magit-state git-rebase-mode-map
|
||||
"gj" #'git-rebase-move-line-down
|
||||
"gk" #'git-rebase-move-line-up)))
|
||||
|
||||
(def-package! forge
|
||||
:when (featurep! :tools magit +forge)
|
||||
:after magit
|
||||
:init
|
||||
(setq forge-database-file (concat doom-etc-dir "forge/forge-database.sqlite")))
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
(when (package! magit)
|
||||
(package! magit-gitflow)
|
||||
(package! magithub)
|
||||
(if (featurep! +forge)
|
||||
(package! forge)
|
||||
(package! magithub))
|
||||
(package! magit-todos)
|
||||
(when (featurep! :feature evil +everywhere)
|
||||
(package! evil-magit)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue