From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Willemsen Newsgroups: gmane.emacs.help Subject: Re: Automatically performing simple tasks at startup Date: Fri, 8 Jul 2011 11:06:03 +0200 Message-ID: <20110708090603.GA1502@cloud.lokaal> References: <32016720.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310143861 8512 80.91.229.12 (8 Jul 2011 16:51:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 16:51:01 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: roosh1 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 08 18:50:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QfEGV-0008Oh-Cm for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jul 2011 18:50:55 +0200 Original-Received: from localhost ([::1]:60541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfEGU-0005y9-4k for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jul 2011 12:50:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf70s-0002Nb-Mw for Help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 05:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf70p-0003hB-AT for Help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 05:06:18 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:40879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf70o-0003gd-NA for Help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 05:06:15 -0400 Original-Received: by wwi14 with SMTP id 14so360799wwi.0 for ; Fri, 08 Jul 2011 02:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ad/LXvKd6gxqjCrfQn3HVNCGzkDQ23ePXM1w2Eq6MdM=; b=ir3RQShLGcYv1HMH6roANW52lm3Yrkohuj96JE6hPB9aSzTbcqVDYQJ5CO6Rev9wu0 v/+0EWFibi+Oz4m0Bkgt8iOVsSDnAwM+0YEyAFQW4UpSXqAysJcVY3WUsGn//QFMu99F nUKcVHSS+eqOct+aJ7XHUodcIOVUXLscen/2g= Original-Received: by 10.216.233.211 with SMTP id p61mr1446274weq.107.1310115973224; Fri, 08 Jul 2011 02:06:13 -0700 (PDT) Original-Received: from cloud.lokaal (78-21-107-12.access.telenet.be [78.21.107.12]) by mx.google.com with ESMTPS id d7sm5218386wek.45.2011.07.08.02.06.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 02:06:11 -0700 (PDT) Mail-Followup-To: roosh1 , Help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <32016720.post@talk.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.41 X-Mailman-Approved-At: Fri, 08 Jul 2011 12:34:33 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81527 Archived-At: On 07 Jul 13:42, roosh1 wrote: > > I can't find a way for Emacs to do some simple things automatically at every > start-up. Can anyone help me make Emacs do the following things at start-up: > > 1) Split the window into 2 (I have to do a "C-x 2") > > 2) Run scheme in the bottom buffer (I do a "alt-x run-scheme") > > 3) If I open a scheme file (ie double click it, which starts Emacs), could > Emacs automatically do (1) and (2) and also load my file into the top > buffer. Would putting something like: (split-window-above-each-other) (other-window 1) (run-scheme "scheme") (other-window -1) Somewhere (near the end?) of your ~/.emacs possibly do the trick?