From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Lei Newsgroups: gmane.emacs.help Subject: Re: Automatically performing simple tasks at startup Date: Fri, 08 Jul 2011 22:48:15 +0800 Message-ID: <4e1718d8.e231440a.5cb2.ffffd079@mx.google.com> 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 1310137600 32291 80.91.229.12 (8 Jul 2011 15:06:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 15:06:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 08 17:06:36 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 1QfCdW-00038E-CN for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jul 2011 17:06:34 +0200 Original-Received: from localhost ([::1]:58988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfCdU-0005Zb-UV for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jul 2011 11:06:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfCMW-0002n0-Fh for help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 10:49:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfCMU-00071q-Uu for help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 10:49:00 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:41088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfCMU-00071X-HM for help-gnu-emacs@gnu.org; Fri, 08 Jul 2011 10:48:58 -0400 Original-Received: by pwi12 with SMTP id 12so1453749pwi.0 for ; Fri, 08 Jul 2011 07:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=cx56VY7oxDRE3f/vFYSKSISVEvbODQpKxJoPvbCRsYA=; b=DRdV5oYpQ52DcQIALjxdFK3jKfmhUwzd+qMLyqIcAoZoqRzr4NT1EfjI14cBc40iT5 F3XkuMKq8wZE8DogwZ9x6js9sdCXDU6aLD5MMncv9Z/vr/9LKqhsDtStQ76NnWVL848s hQ78O5pa9r1tUAIRyYCVoxeKAj8x6eDz4+6FM= Original-Received: by 10.68.40.67 with SMTP id v3mr2957791pbk.178.1310136536672; Fri, 08 Jul 2011 07:48:56 -0700 (PDT) Original-Received: from localhost ([117.136.0.216]) by mx.google.com with ESMTPS id x2sm6339085pbn.29.2011.07.08.07.48.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 07:48:56 -0700 (PDT) Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <32016720.post@talk.nabble.com> (roosh1's message of "Thu, 7 Jul 2011 13:42:21 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.41 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:81525 Archived-At: On 2011-07-08 04:42:21 +0800, 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. > > Thanks for any help. Try this. Add the 3 lines to your .emacs. (split-window-vertically) (run-scheme) (other-window 1) -- Regards, Lei