GNU emacs 23.2.1
我在10英寸的上网本上使用emacs。
如果我有2个缓冲区彼此垂直打开。当我编译编译显示在一个新的垂直缓冲区。但是,现在我有3个缓冲区。但是,如果屏幕较小,则无法查看错误。
我想知道是否有办法在非活动缓冲区中显示编译。
我使用以下内容显示垂直缓冲区:
; Always split vertiacally
(setq split-width-threshold 0)
(setq split-height-threshold nil)
非常感谢任何建议,
答案 0 :(得分:3)
尝试
(setq split-width-threshold (ceiling (frame-width) 2))
也许会这样做:
(defun display-on-side (buffer &optional not-this-window frame)
(let* ((window (or (minibuffer-selected-window)
(selected-window)))
(display-buffer-function nil)
(pop-up-windows nil))
(with-selected-window (or window (error "display-on-side"))
(when (one-window-p t)
(split-window-horizontally))
(display-buffer buffer not-this-window frame))))
(setq display-buffer-function 'display-on-side)