home *** CD-ROM | disk | FTP | other *** search
- Date: Fri, 21 Aug 1992 12:44:12 +0200
- From: harald%itk.unit.no@lucid.com
- Message-ID: <9208211044.AA17098@tone>
- Subject: epoch init hook
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- x-gateway: Fri from help-lucid-emacs to alt.lucid-emacs.help; Fri, 21 Aug 1992 07:59:39 EDT
- Lines: 39
-
- I want to have a way to make SITE WIDE defaults like (autoload ...) in
- Lucid Emacs (lemacs).
-
- Of cause this can be done in site-init.el, but then I have to
- recompile lemacs every time we install a new package. The other
- alternative is default.el, but that file is loadet after ~/.emacs.
- This inhibits any personal preferences.
-
- And I don't want every user to have a (load-file "our-site-defaults"
- ..) in their ~/.emacs.
-
- In Epoch there is a hook, setup-hook, that can be used, see example
- below. Is there any hook like this, or any other mechanism, in lemacs?
-
- Regards, Harald Backer
-
- SINTEF Automatic Control : Phone +47 7 594375
- The Norwegian Institute of Technology : Fax +47 7 594399
- N-7034 Trondheim : Email harald@itk.unit.no
- NORWAY
-
- ...............................................................
-
- ;;
- ;; File name : site-init.el
- ;;
- ;; Function: Intended to load a "global" init-file before user's own
- ;; .emacs is loaded. (site-init is also loaded before the user's
- ;; .emacs, but modifications in site-init is not reflected until
- ;; emacs/epoch is recompiled. The standard default.el is loaded
- ;; after the user's .emacs.)
- ;;
-
- ;; Put news in default-init, not here in site-init - unless you want
- ;; to recompile emacs/epoch. NB! Don't use setq epoch-setup-hook as it
- ;; is already set in some basic epoch lisp files.
- (epoch-add-setup-hook '(lambda ()
- (load "default-init" t t)
- ))
-