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

1 Answer 1


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

  • Thanks, (setq magit-display-buffer-function (quote magit-display-buffer-same-window-except-diff-v1)) seems to have done it.
    – Oin
    Aug 17, 2020 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, 2020 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.