[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically performing simple tasks at startup
From: |
Wang Lei |
Subject: |
Re: Automatically performing simple tasks at startup |
Date: |
Fri, 08 Jul 2011 22:48:15 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
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