From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: How to make "C-x 4" command work better for widescreen monitor Date: Wed, 29 Oct 2008 17:49:08 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <87ljw7l7uz.fsf@kobe.laptop> References: <8a26fb47-c638-4d77-a493-61826a959d8e@b31g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225302151 13715 80.91.229.12 (29 Oct 2008 17:42:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2008 17:42:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 29 18:43:30 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KvF4h-0006k8-Li for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Oct 2008 18:43:19 +0100 Original-Received: from localhost ([127.0.0.1]:43405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvF3b-0000cN-5W for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Oct 2008 13:42:11 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:6qMsv4o70CdcXwJLpvu5wPZ5cYs= Original-Lines: 42 Original-NNTP-Posting-Host: 77.49.8.149 Original-X-Trace: news.sunsite.dk DXC=5^a_SFkla_nHNh; Hl28o0iYSB=nbEKnkkjL0kO3l6odnL^MjgbH?lJH1Tkjl0GV6>`Sjj^TTRZ<0F4j Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:163900 comp.emacs:97291 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59241 Archived-At: On Tue, 28 Oct 2008 11:59:02 -0700 (PDT), Pony wrote: > When we run the command "C-x 4 f", which will open a new file in a new > buffer under the current one, the Emacs will cut the whole window into > two vertical ones, each takes 50% space of the screen. > > However at present more and more people begin to use widescreen tft > monitor for programming, in my opinion it will be much better that, > after we run "C-x 4" commands the Emacs cut the whole screen into two > HORIZONTALL screens. > > Of course, people could open a new file first with "C-x 4 f" command, > and close it, and run "C-x 3" command to cut the whole screen > horizontally and show it in the second window. But it takes some > operations, which will be happened frequently when programming. > > Is there a fast and direct way to make all the "C-x 4" commands > default cut the window HORIZONTALLY, or not? Especially when you're > compiling, make the compiling result show in the window right to the > code window!! Emacs 23.X does this automatically if the current display width is larger than a customizable threshold: ,---[ C-h v split-width-threshold RET ]-------------------------------- | split-width-threshold is a variable defined in `window.el'. | Its value is 160 | | Documentation: | Minimum width of window to be split horizontally. | If the value is a number, `display-buffer' can split a window | only if it has at least as many columns. If the value is nil, | `display-buffer' cannot split a window horizontally. | | You can customize this variable. | | This variable was introduced, or its default value was changed, in | version 23.1 of Emacs. `----------------------------------------------------------------------- Unfortunately, I don't have an Emacs 22.X installation handy today, so it may be worth checking if your version of Emacs includes this option.