summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.el b/init.el
index 9e6eef5..9fb97f7 100644
--- a/init.el
+++ b/init.el
@@ -987,6 +987,15 @@
(km/magit-mode-kill-hidden 'magit-diff-mode))
'((name . "magit-diff-kill-previous")))
+
+ (advice-add
+ 'magit-diff-while-committing
+ :around
+ (lambda (fn &rest args)
+ (let ((magit-display-buffer-noselect t))
+ (apply fn args)))
+ '((name . "magit-diff-while-committing-no-select")))
+
(advice-add
'magit-generate-buffer-name-default-function
:around