unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nurullah Akkaya <nurullah.akkaya@blooby.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: nOOb question: configuring number of windows at startup
Date: Tue, 31 Mar 2009 02:52:55 +0300	[thread overview]
Message-ID: <a06f430f0903301652y17780c40x656327d39e8fe765@mail.gmail.com> (raw)
In-Reply-To: <6310819d-06be-4c02-a795-85c79d87095a@f19g2000vbf.googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]

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
> ----------------------------------------
>    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

[-- Attachment #2: Type: text/html, Size: 1636 bytes --]

  reply	other threads:[~2009-03-30 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 22:27 nOOb question: configuring number of windows at startup luca.pamparana
2009-03-30 23:52 ` Nurullah Akkaya [this message]
     [not found] ` <mailman.4288.1238457181.31690.help-gnu-emacs@gnu.org>
2009-04-03 12:33   ` luca.pamparana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a06f430f0903301652y17780c40x656327d39e8fe765@mail.gmail.com \
    --to=nurullah.akkaya@blooby.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).