Merge pull request #1076 from filalex77/magit-forge

[tools/magit] Add magit-forge
This commit is contained in:
Henrik Lissner 2019-02-12 15:33:48 -05:00 committed by GitHub
commit 9f96e3eae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -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))

View file

@ -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")))

View file

@ -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)))