tools/magit: gate magithub behind +hub flag
Use +magit-hub-features to customize which features to load. Set it to `t` to load all features.
This commit is contained in:
parent
5c8ff3ada3
commit
1a28a0c088
3 changed files with 14 additions and 3 deletions
|
@ -56,7 +56,7 @@
|
|||
;gist ; interacting with github gists
|
||||
;macos ; MacOS-specific commands
|
||||
;make ; run make tasks from Emacs
|
||||
;magit ;
|
||||
;(magit +hub) ;
|
||||
;password-store ; password manager for nerds
|
||||
pdf ; pdf enhancements
|
||||
;prodigy ; FIXME managing external services & code builders
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
;;; tools/magit/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +magit-hub-features
|
||||
'(pull-request-merge commit-browse completion)
|
||||
"TODO")
|
||||
|
||||
|
||||
;;
|
||||
;; Plugins
|
||||
;;
|
||||
|
||||
(def-package! magit
|
||||
:defer t
|
||||
:config
|
||||
|
@ -20,6 +29,7 @@
|
|||
|
||||
|
||||
(def-package! magithub
|
||||
:when (featurep! +hub)
|
||||
:after magit
|
||||
:preface
|
||||
(setq magithub-dir (concat doom-etc-dir "magithub/"))
|
||||
|
@ -27,7 +37,7 @@
|
|||
(setq magithub-clone-default-directory "~/"
|
||||
magithub-preferred-remote-method 'clone_url)
|
||||
:config
|
||||
(magithub-feature-autoinject t))
|
||||
(magithub-feature-autoinject +magit-hub-features))
|
||||
|
||||
|
||||
(def-package! magit-gitflow
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
;;; tools/magit/packages.el
|
||||
|
||||
(when (package! magit)
|
||||
(package! magithub)
|
||||
(package! magit-gitflow)
|
||||
(when (featurep! +hub)
|
||||
(package! magithub))
|
||||
(when (featurep! :feature evil)
|
||||
(package! evil-magit)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue