diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-02-01 18:54:47 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-02-01 18:54:47 -0500 |
commit | 016b47663d6484dfb222a42512f24a3b853c4d23 (patch) | |
tree | a69b284c2bd1f36ee61c29477e18d92d2b2600aa | |
parent | 4017ad1bbb5ea1594227f2eca173982ce374b838 (diff) | |
download | emacs.d-016b47663d6484dfb222a42512f24a3b853c4d23.tar.gz |
Advise magit-diff-while-committing to not select buffer
-rw-r--r-- | init.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |