From 8cf374b249684cc6fac81eb4b7e44e981f3b996c Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Mon, 27 Nov 2017 12:29:56 +0100 Subject: [PATCH] magit: add new magit-insert-modules to magit-status-sections-hook Instead of adding various `magit-insert-modules-*' functions directly. --- init.el | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/init.el b/init.el index 16ffe3c..b41a8c4 100644 --- a/init.el +++ b/init.el @@ -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