0

When I do a commit, magit popups the diff in a separate wm window. I'd like it to show the diff in the same wm window and just split into a different wm window.

I've tried this answer, but it hasn't worked.

magit 20200805.1104 emacs 26.3

Oin
  • 145
  • 5

1 Answers1

1

I think you are looking for the magit-display-buffer-function option.

tarsius
  • 25,298
  • 4
  • 69
  • 109
  • Thanks, `(setq magit-display-buffer-function (quote magit-display-buffer-same-window-except-diff-v1))` seems to have done it. – Oin Aug 17 '20 at 13:45
  • This has worked for commit diffs, but it doesn't seem to work for magit-revision frames which still pop-out (e.g. when pressing Enter on an entry in magit-log). Is there a separate variable for that? Or a way to set this behaviour globally? – Oin Aug 17 '20 at 14:37