From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: ken <ken@cleveland.lug.net>
Newsgroups: gmane.emacs.help
Subject: Re: .emacs configuration question (easy)
Date: Thu, 3 Oct 2002 23:27:46 -0400 (EDT)
Sender: help-gnu-emacs-admin@gnu.org
Message-ID: <Pine.LNX.4.33.0210032322000.1963-100000@heidegger.mousecar.net>
References: <9hvm9.5741$dp1.28734@rwcrnsc52.ops.asp.att.net>
 <m33crp8856.fsf@ID-87814.user.dfncis.de>
Reply-To: <ken@cleveland.lug.net>
NNTP-Posting-Host: localhost.gmane.org
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Trace: main.gmane.org 1033704515 7066 127.0.0.1 (4 Oct 2002 04:08:35 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Fri, 4 Oct 2002 04:08:35 +0000 (UTC)
Cc: <help-gnu-emacs@gnu.org>
Return-path: <help-gnu-emacs-admin@gnu.org>
Original-Received: from monty-python.gnu.org ([199.232.76.173])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 17xJlR-0001po-00
	for <gnu-help-gnu-emacs@m.gmane.org>; Fri, 04 Oct 2002 06:08:33 +0200
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17xJlF-0002Rl-00; Fri, 04 Oct 2002 00:08:21 -0400
Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17xJ7x-0000oa-00
	for help-gnu-emacs@gnu.org; Thu, 03 Oct 2002 23:27:45 -0400
Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17xJ7v-0000oO-00
	for help-gnu-emacs@gnu.org; Thu, 03 Oct 2002 23:27:45 -0400
Original-Received: from oh-northolmstead1-7-171.clvhoh.adelphia.net ([68.71.102.171] helo=heidegger.mousecar.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17xJ7v-0000oJ-00
	for help-gnu-emacs@gnu.org; Thu, 03 Oct 2002 23:27:43 -0400
Original-Received: from localhost (ken@localhost)
	by heidegger.mousecar.net (8.11.6/8.11.6) with ESMTP id g943Rq902036;
	Thu, 3 Oct 2002 23:27:56 -0400
X-Authentication-Warning: heidegger.mousecar.net: ken owned process doing -bs
Original-Newsgroups: gnu.emacs.help
X-X-Sender: <ken@heidegger.mousecar.net>
Original-To: Oliver Scholz <alkibiades@gmx.de>
In-Reply-To: <m33crp8856.fsf@ID-87814.user.dfncis.de>
Errors-To: help-gnu-emacs-admin@gnu.org
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs/>
Xref: main.gmane.org gmane.emacs.help:2198
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2198


Spake Oliver Scholz at 12:09 (UTC+0200) on Wed, 2 Oct 2002:

= "Ryan Barnard" <barnarr@cc.wwu.edu> writes:
= 
= > Hi,
= >
= > I'm fairly new to using Emacs, but I see great potential for it.  I've got a
= > simple question I was hoping somebody could help me with:
= >
= > I want to set up emacs to be a little IDE for some C++ work I wish to do.
= > Here's the keypresses needed to make it look how I want it:
= > C-x 2
= > C-x ^
= > C-x ^
= > C-x ^
= > C-x ^
= > C-x ^
= > C-x ^
= > C-x ^
= > C-x 3
= > C-x o
= > C-x o
= > M-x shell
= > C-x o
= >
= > What this basically does is make two editor windows on the upper-left and
= > right, and a shell at the bottom where I can do my compiles and test runs.
= >
= > So, how can I have this set up in my .emacs file so it defaults to look like
= > this (or something close to it?
= [...]
= 
= Besides doing this programatically as Jonas suggested, you can do it
= with a slightly different set of key commands: to do `C-x ^' and many
= other commands repeatedly, you can call them with a prefix argument:
= 
= C-x 2
= M-7 C-x ^    or     C-u 7 C-x ^
= C-x 3
= M-2 C-o
= M-x shell
= C-x o
= 
= I have a related question to the group:
= 
= Suppose I want to make the shell window "sticky". That is: it should
= always at the same size and it should always show only a shell
= buffer. And Emacs should not take this window into account, when it
= resizes another window, or pops up some buffer etc.. Is this possible?
= AFAIK the tool-bar is actually such a window, so I guess that at least
= in the internals there are means provided for something like this. But
= can I do it with a Lisp extension? I know that I can use `winner-mode'
= to maintain my window-configuration, but this requires that I think
= and thinking is cumbersome.
= 
= Another candidate for something like this would be the speed-bar. It
= would be nice if I could have it in a "sticky" window instead of a
= separate frame.
= 
=     -- Oliver
= 
= 

The keyword you need is "geometry".  You could use it as a commandline
option when firing up emacs or put something like "emacs.geometry ..."
in your ~/.Xdefaults file.  The "geometry" spec is used to set both size 
and location of the window.

I'd suggest starting emacs from the command line with the "geometry" 
option.  It's easier to play around with.  Requires less thinking.  


hth,
ken

-- 
AMD crashes?  See http://cleveland.lug.net/~ken/amd-problem/.