summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-30 21:46:23 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-30 21:46:23 -0400
commitd1859154e80c06964c6786f76a35b3fab0139156 (patch)
treedaa0a4e0cb983910c1193a8678f4debeb3476b46
parent1f34790117031ff61fcc87800241210528dd844c (diff)
downloademacs.d-d1859154e80c06964c6786f76a35b3fab0139156.tar.gz
Re-arrange magit-status-sections-hook
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index 5df1941..2db8b38 100644
--- a/init.el
+++ b/init.el
@@ -871,6 +871,13 @@
(plist-put magit-patch-popup :use-prefix 'popup))
(setq magit-patch-arguments '("--output-directory=outgoing/"))
+ (setq magit-status-sections-hook
+ (let ((funcs (list #'magit-insert-unpulled-from-pushremote
+ #'magit-insert-unpulled-from-upstream)))
+ (append (cl-remove-if (lambda (x) (memq x funcs))
+ magit-status-sections-hook)
+ funcs)))
+
(remove-hook 'magit-refs-sections-hook #'magit-insert-tags)
(setq magit-display-buffer-function