Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: runtime hook Message-ID: <40289@bbn.COM> Date: 22 May 89 19:32:39 GMT References: <8905171912.AA06544@dsys.icst.nbs.gov> <40104@bbn.COM> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 29 In-reply-to: jr@bbn.com (John Robinson) In article <40104@bbn.COM>, jr@bbn (John Robinson) [that's me!] 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? >> >The file $EMACS/lisp/default.el, if it exists, is loaded at startup >for any user without a .emacs file. This may help. Mark D. Baushke pointed out in mail that I said that a little wrong. The condition on its being loaded should read: The file $EMACS/lisp/default.el, if it exists, is loaded at startup for any user that has not done a (setq inhibit-default-init t) into their ~/.emacs file. In other words, Benson need only create a default.el file with the code he needs in it. Users smart enough to set inhibit-default-init ought to be able to figure out what they lose by so doing. default.el is loaded after the user's .emacs. It may be byte-compiled. This is true for 18.51, (probably 18.52), 18.53 and 18.54. -- /jr, nee John Robinson What a waste it is to lose one's mind--or not jr@bbn.com or bbn!jr to have a mind. How true that is. -Dan Quayle