unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* newbie: window layout
@ 2008-03-05 19:30 rory
  2008-03-05 22:33 ` Lennart Borgman (gmail)
  2008-03-05 23:05 ` Peter Dyballa
  0 siblings, 2 replies; 7+ messages in thread
From: rory @ 2008-03-05 19:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone, pardon my emacs ignorance but I am having some difficulty
in doing the following: editting my .emacs file so that emacs open
with two windows but the bottom window is shorter than the top. I am
using (split-window-vertically) which seems to split the window up but
after that I can' seem to change their sizes. I would also like to
have the first windo black with white writing and the second one white
with black writing. I though I could use defualt-frame-alist and
initial-frame-alist for this but I'm obviously getting some thing.
These may seem like a ridiculous layout but it's the one I'm used to
and I would love to recreate it in emacs so I can do away with all my
other editors for once and for all. Here is my .emacs file, it's
hacked from lots of stuff I found on the net:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(cua-mode t nil (cua-base))
 '(default-frame-alist (quote
((tool-bar-lines . 0)
(menu-bar-lines . 1)
(top . 0) (left . 0)
(cursor-color . "white") (cursor-type . box)
(foreground-color . "yellow")
(background-color . "black")
(font . "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1"))))
 '(scroll-step 10)
 '(scroll-up-aggressively 0.5)
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

(fset 'yes-or-no-p 'y-or-n-p)

(setq initial-frame-alist
      '((cursor-color . "white")
(width . 300) (height . 600)
        (cursor-type . box)
        (foreground-color . "white")
        (background-color . "black")
        (font . "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1")))

(setq default-frame-alist
      '((cursor-color . "white")
(width . 4) (height . 4)
        (cursor-type . box)
        (foreground-color . "yellow")
        (background-color . "black")
        (font . "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1")))

(split-window-vertically)
(other-window 0)
(set-frame-height (selected-frame) 40)

(progn
  (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))  ;; no toolbar
  (menu-bar-mode 1) ;;no menubar
  (scroll-bar-mode -1) ;; no scroll bar
  )

(set-fringe-mode 10)

(add-hook 'term-setup-hook #'(lambda () (w32-send-sys-command ?
\xF030)))

Any ideas?

Rory.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
  2008-03-05 19:30 newbie: window layout rory
@ 2008-03-05 22:33 ` Lennart Borgman (gmail)
  2008-03-05 23:04   ` Thierry Volpiatto
       [not found]   ` <mailman.8396.1204757506.18990.help-gnu-emacs@gnu.org>
  2008-03-05 23:05 ` Peter Dyballa
  1 sibling, 2 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-05 22:33 UTC (permalink / raw)
  To: rory; +Cc: help-gnu-emacs

rory wrote:
> Hi everyone, pardon my emacs ignorance but I am having some difficulty
> in doing the following: editting my .emacs file so that emacs open
> with two windows but the bottom window is shorter than the top. I am
> using (split-window-vertically) which seems to split the window up but
> after that I can' seem to change their sizes. I would also like to
> have the first windo black with white writing and the second one white
> with black writing.

Colors are currently per frame, not per window.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
  2008-03-05 22:33 ` Lennart Borgman (gmail)
@ 2008-03-05 23:04   ` Thierry Volpiatto
       [not found]   ` <mailman.8396.1204757506.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2008-03-05 23:04 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: help-gnu-emacs, rory

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> rory wrote:
>> Hi everyone, pardon my emacs ignorance but I am having some difficulty
>> in doing the following: editting my .emacs file so that emacs open
>> with two windows but the bottom window is shorter than the top. I am
>> using (split-window-vertically) which seems to split the window up but
>> after that I can' seem to change their sizes. 

You can give an option to (split-window-vertically n)
==> n is the number of lines.
By default the window is split in two equal part.

>> I would also like to
>> have the first windo black with white writing and the second one white
>> with black writing.
>
> Colors are currently per frame, not per window.
>
>
>

-- 
A + Thierry
Pub key: http://pgp.mit.edu




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
  2008-03-05 19:30 newbie: window layout rory
  2008-03-05 22:33 ` Lennart Borgman (gmail)
@ 2008-03-05 23:05 ` Peter Dyballa
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-03-05 23:05 UTC (permalink / raw)
  To: rory; +Cc: help-gnu-emacs


Am 05.03.2008 um 20:30 schrieb rory:

>  '(default-frame-alist (quote
> ((tool-bar-lines . 0)
> (menu-bar-lines . 1)
> (top . 0) (left . 0)
> (cursor-color . "white") (cursor-type . box)
> (foreground-color . "yellow")
> (background-color . "black")
> (font . "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1"))))

Default-frame-alist is already set as quoted in your customisation,  
so there's no need to set the alist a second time below. And menu-bar- 
mode and scroll-bar-mode also. Usually the customisation is at the  
end of the user init file.

--
Greetings

   Pete

If you don't find it in the index, look very carefully through the  
entire catalogue.
	–  Sears, Roebuck, and Co., Consumer's Guide, 1897








^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
       [not found]   ` <mailman.8396.1204757506.18990.help-gnu-emacs@gnu.org>
@ 2008-03-05 23:15     ` rory
  2008-03-05 23:24       ` rory
  0 siblings, 1 reply; 7+ messages in thread
From: rory @ 2008-03-05 23:15 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 5, 11:04 pm, Thierry Volpiatto <thierry.volpia...@gmail.com>
wrote:
> "Lennart Borgman (gmail)" <lennart.borg...@gmail.com> writes:
>
> > rory wrote:
> >> Hi everyone, pardon my emacs ignorance but I am having some difficulty
> >> in doing the following: editting my .emacs file so that emacs open
> >> with two windows but the bottom window is shorter than the top. I am
> >> using (split-window-vertically) which seems to split the window up but
> >> after that I can' seem to change their sizes.
>
> You can give an option to (split-window-vertically n)
> ==> n is the number of lines.
> By default the window is split in two equal part.
>
> >> I would also like to
> >> have the first windo black with white writing and the second one white
> >> with black writing.
>
> > Colors are currently per frame, not per window.
>
> --
> A + Thierry
> Pub key:http://pgp.mit.edu

I just sent a reply but it didn't seem to show up. No matter what
number I put after split-window-vertically, apart from an absolutely
huge one, the windows still open up half and half. I'll take out the
default-frame-alist as Peter suggest too in order to tidy up my
startup file. I hope this post shows up on the list..

Rory.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
  2008-03-05 23:15     ` rory
@ 2008-03-05 23:24       ` rory
  2008-03-07 15:47         ` Ken Goldman
  0 siblings, 1 reply; 7+ messages in thread
From: rory @ 2008-03-05 23:24 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 5, 11:15 pm, rory <rorywa...@gmail.com> wrote:
> On Mar 5, 11:04 pm, Thierry Volpiatto <thierry.volpia...@gmail.com>
> wrote:
>
>
>
> > "Lennart Borgman (gmail)" <lennart.borg...@gmail.com> writes:
>
> > > rory wrote:
> > >> Hi everyone, pardon my emacs ignorance but I am having some difficulty
> > >> in doing the following: editting my .emacs file so that emacs open
> > >> with two windows but the bottom window is shorter than the top. I am
> > >> using (split-window-vertically) which seems to split the window up but
> > >> after that I can' seem to change their sizes.
>
> > You can give an option to (split-window-vertically n)
> > ==> n is the number of lines.
> > By default the window is split in two equal part.
>
> > >> I would also like to
> > >> have the first windo black with white writing and the second one white
> > >> with black writing.
>
> > > Colors are currently per frame, not per window.
>
> > --
> > A + Thierry
> > Pub key:http://pgp.mit.edu
>
> I just sent a reply but it didn't seem to show up. No matter what
> number I put after split-window-vertically, apart from an absolutely
> huge one, the windows still open up half and half. I'll take out the
> default-frame-alist as Peter suggest too in order to tidy up my
> startup file. I hope this post shows up on the list..
>
> Rory.

Thanks guys, I took out the useless default-frame-alist code and some
other things, it now seems to be working, except now it won't open
full screen any more? Here is my code now, the relevant stuff is near
the bottom:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(cua-mode t nil (cua-base))
 '(default-frame-alist (quote
((tool-bar-lines . 0)
(menu-bar-lines . 1)
(top . 0) (left . 0)
(cursor-color . "white") (cursor-type . box)
(foreground-color . "white")
(background-color . "black")
(font . "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1"))))
 '(scroll-aggressively 1)
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

(fset 'yes-or-no-p 'y-or-n-p)
(setq scroll-step 1)
(setq scroll-up 1)
(split-window-vertically 30)
(other-window 0)

(progn
  (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))  ;; no toolbar
  (menu-bar-mode 1) ;;no menubar
  (scroll-bar-mode -1) ;; no scroll bar
  )

(add-hook 'term-setup-hook #'(lambda () (w32-send-sys-command ?
\xF030)))


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: newbie: window layout
  2008-03-05 23:24       ` rory
@ 2008-03-07 15:47         ` Ken Goldman
  0 siblings, 0 replies; 7+ messages in thread
From: Ken Goldman @ 2008-03-07 15:47 UTC (permalink / raw)
  To: help-gnu-emacs

If you're willing to change it manually, you can just drag the
divider with the left mouse.

rory wrote:
>Hi everyone, pardon my emacs ignorance but I am having some difficulty
>in doing the following: editting my .emacs file so that emacs open
>with two windows but the bottom window is shorter than the top. I am
>using (split-window-vertically) which seems to split the window up but
>after that I can' seem to change their sizes.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-07 15:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 19:30 newbie: window layout rory
2008-03-05 22:33 ` Lennart Borgman (gmail)
2008-03-05 23:04   ` Thierry Volpiatto
     [not found]   ` <mailman.8396.1204757506.18990.help-gnu-emacs@gnu.org>
2008-03-05 23:15     ` rory
2008-03-05 23:24       ` rory
2008-03-07 15:47         ` Ken Goldman
2008-03-05 23:05 ` Peter Dyballa

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