Path: utzoo!attcan!uunet!husc6!cmcl2!lanl!lambda!roberts From: roberts@studguppy.lanl.gov (Doug Roberts) Newsgroups: comp.emacs Subject: Re: runtime hook Message-ID: Date: 18 May 89 14:20:07 GMT References: <8905171912.AA06544@dsys.icst.nbs.gov> <40104@bbn.COM> Sender: news@lanl.gov Organization: Los Alamos National Laboratory Lines: 37 In-reply-to: jr@bbn.com's message of 17 May 89 21:31:21 GMT In article <40104@bbn.COM> jr@bbn.com (John Robinson) writes: > In article <8905171912.AA06544@dsys.icst.nbs.gov>, rbj@dsys (Root Boy Jim) writes: > >? From: odi!benson@uunet.uu.net (Benson Margulies) > > > >? Is there a hook (18.53-wise) that can be set in site-init.el to cause a function > >? to run when emacs is started up? > > > >Yes. It's called `load'. > > I don't think this gets at what Benson is asking. site-init.el can > cause packages to be put into shareable pure lisp space, and can > initialize some lisp variables, but it can't leave something around to > be run when emacs is started. > I believe that Benson _can_ use a load definition to accomplish what he wants. He can create a load file like the following: (defun () do-foo "A function that we wish to be running when GNU starts." (format t "Doing foo.")) (do-foo) This will cause do-foo to come up running. --Doug -- =============================================================== Douglas Roberts Los Alamos National Laboratory Box 1663, MS F-602 Los Alamos, New Mexico 87545 (505)667-4569 dzzr@lanl.gov ===============================================================