[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nOOb question: configuring number of windows at startup
From: |
luca . pamparana |
Subject: |
Re: nOOb question: configuring number of windows at startup |
Date: |
Fri, 3 Apr 2009 05:33:11 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Mar 31, 1:52 am, Nurullah Akkaya <nurullah.akk...@blooby.com>
wrote:
> On Tue, Mar 31, 2009 at 1:27 AM, <luca.pampar...@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 Akkayahttp://nakkaya.com
This is exactly what i wanted. Many thanks!
emacs rules...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: nOOb question: configuring number of windows at startup,
luca . pamparana <=