help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switch-to-buffer-other-window to split vertically by default ?


From: martin rudalics
Subject: Re: switch-to-buffer-other-window to split vertically by default ?
Date: Fri, 09 Jun 2006 15:28:04 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

With complete disregard for frames:

(defun my-display-buffer (buffer &optional not-this-window frame)
  (if (one-window-p)
      (let ((window (split-window-horizontally)))
        (set-window-buffer window buffer)
        window)
    (let (display-buffer-function)
      (display-buffer buffer not-this-window frame))))

(setq display-buffer-function 'my-display-buffer)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]