[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically performing simple tasks at startup

From: Pavel Sokolov
Subject: Re: Automatically performing simple tasks at startup
Date: Fri, 08 Jul 2011 10:39:26 +0400
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO)

Hi, roosh1,

You may use after-init-hook to do (1) and (2) at start-up. Sample code
is following:

(add-hook 'after-init-hook #'(lambda ()
                               (other-window 1)
                               (run-scheme "you-arg-here")))

Also you may add same code to the 'find-file-hook hook to do (3)


> 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.
> -- 
> View this message in context: 
> Sent from the Emacs - Help mailing list archive at

Pavel Sokolov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]