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)) ("C-x M-g" . magit-dispatch-popup))
:config :config
(magit-add-section-hook 'magit-status-sections-hook (magit-add-section-hook 'magit-status-sections-hook
'magit-insert-modules-unpulled-from-upstream 'magit-insert-modules
'magit-insert-unpulled-from-upstream) 'magit-insert-stashes
(magit-add-section-hook 'magit-status-sections-hook 'append))
'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))
(use-package man (use-package man
:defer t :defer t