I use M-! to run the command shell-command. The output will open the buffer in a new window at the bottom. Can I configure it to appear on the right?

  • See the variables split-width-threshold and split-height-threshold: gnu.org/software/emacs/manual/html_node/emacs/…
    – lawlist
    Aug 11, 2016 at 14:48
  • This must be a duplicate. Seems like there are multiple questions asking how to position the window that displays a buffer. If so, it would be helpful if someone consolidated them and we closed all but one.
    – Drew
    Nov 5, 2017 at 5:55

1 Answer 1


Packages that help you to customize window location settings include Shackle (my recommendation) and Popwin

  • 1
    Can you add more detail to your answer to help the OP? For example, what would be the exact shackle rules to get what the OP wants? Jun 8, 2017 at 19:21

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.