Compilation buffers to display in the vertical buffer

emacs 23.2

I just installed emacs on a netbook with a 10.1 "screen.

However, when I compile the source code, the compilation window always opens in a horizontal buffer below my source code buffer.

At work, I use a 15-inch screen, and the compilation opens in a vertical window, which I like.

However, on my 10.1 ", is there a way to make it open in a vertical window. Just try scrolling down and finding errors if the source code buffer buffer is vertical in the compilation buffer.

Thanks so much for any advice,

+3
source share
3 answers

Try the following settings:

(setq split-height-threshold nil)
(setq split-width-threshold 0)

, C-x ` M-x next-error Emacs .

+5

.

(defadvice compile (around split-horizontally activate)
  (let ((split-width-threshold 0)
        (split-height-threshold nil))
    ad-do-it))

, .

+10

"" " Emacs. ,

split-width-threshold

This variable indicates whether split-window-sensiblywindows can be split horizontally. If it is an integer, it split-window-sensiblytries to split the window horizontally only if it has at least that many columns. If it is nil, split-window-sensiblyit will not break the window horizontally. (He can still split the window vertically, though, see above.)

+4
source

Source: https://habr.com/ru/post/1774356/


All Articles