From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rory Newsgroups: gmane.emacs.help Subject: Re: newbie: window layout Date: Wed, 5 Mar 2008 15:24:06 -0800 (PST) Organization: http://groups.google.com Message-ID: <44c1f403-881e-470c-a702-2faf1b71375a@u69g2000hse.googlegroups.com> References: <47CF1FAF.3090903@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204777962 7753 80.91.229.12 (6 Mar 2008 04:32:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 04:32:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 05:33:09 2008 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 1JX7n2-0002yD-Of for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2008 05:33:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX7mV-0004IM-Ax for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2008 23:32:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u69g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 79 Original-NNTP-Posting-Host: 78.16.153.103 Original-X-Trace: posting.google.com 1204759447 5571 127.0.0.1 (5 Mar 2008 23:24:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Mar 2008 23:24:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u69g2000hse.googlegroups.com; posting-host=78.16.153.103; posting-account=VHvavwoAAABOJEZx5m1OXQIv6df3qVhv User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156708 X-Mailman-Approved-At: Wed, 05 Mar 2008 23:31:36 -0500 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:52085 Archived-At: On Mar 5, 11:15 pm, rory wrote: > On Mar 5, 11:04 pm, Thierry Volpiatto > wrote: > > > > > "Lennart Borgman (gmail)" 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)))