Summary: How can I control in which window are open the error links in a compile buffer? That is, if I have already 2 windows, I want that the error jumps to the other open window and reuses it for displaying that buffer. It kinda does this but with 2 windows or 4 depending on whether I'm on an external monitor display or the laptop screen.
I'm trying to configure Emacs to maintain the following setup consistently:
- Keep two windows (I split the frame in two vertically).
- Every time I run compilation it opens it on the other window (the one I'm not active in).
That's it. I'm using Shackle and it sort of helps, but not completely: it works only when I'm using my laptop, but not when using the external monitor. Interestingly, the resolutions are pretty similar:
- Laptop: 3840x2400
- External monitor: 3840x2160
When I'm using the monitor (without extending the laptop, just the monitor), emacs does a similar behavior but instead of respecting the 2-window setup, it always "converges" to a 4-window setup (two on top, two below), no matter where I start. That is, every time I use a message error to go to the corresponding line (in a different file not already open), it will open a buffer (or reuse if there's already 4).
How can I control this? Shackle doesn't let me control things like where do these error links open, which is the main issue.