From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: Re: nOOb question: configuring number of windows at startup Date: Tue, 31 Mar 2009 02:52:55 +0300 Message-ID: References: <6310819d-06be-4c02-a795-85c79d87095a@f19g2000vbf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e644cc68048dae04665ec896 X-Trace: ger.gmane.org 1238457214 30487 80.91.229.12 (30 Mar 2009 23:53:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 23:53:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 01:54:52 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 1LoRJT-0001NB-EK for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 01:54:44 +0200 Original-Received: from localhost ([127.0.0.1]:46712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoRI6-0001lN-Bu for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 19:53:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoRHo-0001lI-0B for help-gnu-emacs@gnu.org; Mon, 30 Mar 2009 19:53:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoRHm-0001l6-A1 for help-gnu-emacs@gnu.org; Mon, 30 Mar 2009 19:52:59 -0400 Original-Received: from [199.232.76.173] (port=39526 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoRHm-0001l3-5T for help-gnu-emacs@gnu.org; Mon, 30 Mar 2009 19:52:58 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.155]:27872) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoRHl-0002g4-3x for help-gnu-emacs@gnu.org; Mon, 30 Mar 2009 19:52:57 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 9so1542645ywk.66 for ; Mon, 30 Mar 2009 16:52:55 -0700 (PDT) Original-Received: by 10.100.120.15 with SMTP id s15mr4464047anc.112.1238457175542; Mon, 30 Mar 2009 16:52:55 -0700 (PDT) In-Reply-To: <6310819d-06be-4c02-a795-85c79d87095a@f19g2000vbf.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63407 Archived-At: --0016e644cc68048dae04665ec896 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > ---------------------------------------- > terminal 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 () "setup frame" (interactive) ;;divide vertically upper gets 35 lines (split-window-vertically 35 ) (split-window-horizontally) ;;assuming you cursor is in top left window (other-window 2) ;;will skip to terminal window ;;run terminal (term "/bin/bash") ;;move back to first frame (other-window 1)) (na-setup-frame) you can also call this function using M-x na-setup-frame regards.. -- Nurullah Akkaya http://nakkaya.com --0016e644cc68048dae04665ec896 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Mar 31, 2009 at 1:27 AM, <luca.pamparana@= gmail.com> 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-verti= cally=A0 35 )
=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 als= o call this function using M-x na-setup-frame

regards..
--
Nu= rullah Akkaya
http://nakkaya.com
--0016e644cc68048dae04665ec896--