From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: luca.pamparana@gmail.com Newsgroups: gmane.emacs.help Subject: Re: nOOb question: configuring number of windows at startup Date: Fri, 3 Apr 2009 05:33:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6310819d-06be-4c02-a795-85c79d87095a@f19g2000vbf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238762592 5291 80.91.229.12 (3 Apr 2009 12:43:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 12:43:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 14:44:30 2009 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 1Lpil4-0002qM-58 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 14:44:30 +0200 Original-Received: from localhost ([127.0.0.1]:36974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lpijg-000860-2z for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 08:43:04 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r33g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 82.113.121.8 Original-X-Trace: posting.google.com 1238761995 4260 127.0.0.1 (3 Apr 2009 12:33:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 3 Apr 2009 12:33:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000yqn.googlegroups.com; posting-host=82.113.121.8; posting-account=D3FzDwoAAABdMDXitkUrPM9nBOvcbWaj User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168172 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:63455 Archived-At: On Mar 31, 1:52=A0am, Nurullah Akkaya wrote: > On Tue, Mar 31, 2009 at 1:27 AM, wrote: > > Hello everyone, > > > I am just moving over to emacs and want to use ot for all my C++ > > development. I want to configure the start screen so that I get two > > vertical buffers and a single terminal window at the bottom of my > > screen. > > > So, something like: > > > ---------------------------------------- > > code window| code window > > ---------------------------------------- > > =A0 =A0terminal window > > ---------------------------------------- > > > Is it possible to specify this in the .emacs file, so that the default > > emacs opens with this setup? > > > Many thanks, > > > Luca > > Hi, > > add following code to your .emacs > > (defun na-setup-frame () > =A0 "setup frame" > =A0 (interactive) > =A0 ;;divide vertically upper gets 35 lines > =A0 (split-window-vertically =A035 ) > =A0 (split-window-horizontally) > > =A0 ;;assuming you cursor is in top left window > =A0 (other-window 2) > =A0 ;;will skip to terminal window > =A0 ;;run terminal > =A0 (term "/bin/bash") > =A0 ;;move back to first frame > =A0 (other-window 1)) > (na-setup-frame) > > you can also call this function using M-x na-setup-frame > > regards.. > -- > Nurullah Akkayahttp://nakkaya.com This is exactly what i wanted. Many thanks! emacs rules...