skyler544@fediverser.communick.devBtoEmacs@fediverser.communick.dev•Window Management - share your display-buffer-alistEnglish
1·
1 year agoThe *shell:
pattern is for use with this package: https://github.com/elizagamedev/shell-command-x.el
If you haven’t tried it, I heartily recommend it. I don’t use a dedicated terminal much anymore; this package and https://github.com/bard/emacs-run-command serve my shell needs these days.
I think that preferences for
display-buffer-alist
will depend on each user’s workflow. With my rule it will pop upmagit-status
in the currently active window, then split to show logs, diffs, etc. I don’t normally use more than two windows per frame, so it’s not too bad if it messes things up, but I haven’t noticed it doing that. If it does do something weird, I just usewinner-undo
until I get back to where I was. For this you have to have(winner-mode)
somewhere in your config or start it manually I guess.For instance, if you had two windows in a vertical split like
A | B
with point inA
, then runmagit-status
,A
will show magit andB
won’t change unless you run something likemagit-log
. Pressingq
in the log window will restoreB
to what it was showing before.Changing this behavior is probably possible, but I’m satisfied with this so far.