From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: .emacs configuration question (easy) Date: Wed, 02 Oct 2002 12:09:09 +0200 Organization: Olymp Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <9hvm9.5741$dp1.28734@rwcrnsc52.ops.asp.att.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1033661441 32212 127.0.0.1 (3 Oct 2002 16:10:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2002 16:10:41 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17x8Yh-0008NG-00 for ; Thu, 03 Oct 2002 18:10:39 +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 17x8Sp-00068L-00; Thu, 03 Oct 2002 12:04:35 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!dialin-145-254-191-236.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: dialin-145-254-191-236.arcor-ip.net (145.254.191.236) Original-X-Trace: fu-berlin.de 1033554469 14207846 145.254.191.236 (16 [87814]) X-Orig-Path: hermes!nobody X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ X-Attribution: os X-Face: "HgH2sgK|bfH$;PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:qMkf6ZBAhpYADz6VmUARSySQg54= Original-Xref: nntp.stanford.edu gnu.emacs.help:105629 Original-To: help-gnu-emacs@gnu.org 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: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2182 "Ryan Barnard" 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 -- 11 Vendémiaire an 211 de la Révolution Liberté, Egalité, Fraternité!