magit: add new magit-insert-modules to magit-status-sections-hook

Instead of adding various `magit-insert-modules-*' functions directly.
This commit is contained in:
Jonas Bernoulli 2017-11-27 12:29:56 +01:00
parent f3778d700f
commit 8cf374b249

17
init.el
View File

@ -100,20 +100,9 @@
("C-x M-g" . magit-dispatch-popup))
:config
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-modules-unpulled-from-upstream
'magit-insert-unpulled-from-upstream)
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-modules-unpulled-from-pushremote
'magit-insert-unpulled-from-upstream)
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-modules-unpushed-to-upstream
'magit-insert-unpulled-from-upstream)
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-modules-unpushed-to-pushremote
'magit-insert-unpulled-from-upstream)
(magit-add-section-hook 'magit-status-sections-hook
'magit-insert-submodules
'magit-insert-unpulled-from-upstream))
'magit-insert-modules
'magit-insert-stashes
'append))
(use-package man
:defer t