Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mtuxo!mtune!rutgers!mit-eddie!YALE.ARPA!ram-ashwin From: ram-ashwin@YALE.ARPA.UUCP Newsgroups: comp.emacs Subject: Re: autoloading [+ Proposal for new load function] Message-ID: <8710301536.AA00762@ATHENA.CS.YALE.EDU> Date: Fri, 30-Oct-87 10:36:02 EST Article-I.D.: ATHENA.8710301536.AA00762 Posted: Fri Oct 30 10:36:02 1987 Date-Received: Sun, 1-Nov-87 08:07:32 EST Sender: daemon@eddie.MIT.EDU Lines: 25 > When I make customizations to packages like rmail.el, I use the hook > provided (c.f., rmail-mode-hook). For example, in ~/.emacs I put > something like this: > > (defun rmail-mode-hook-extras () > "load personal rmail extras" > (load-library "rmail-extra") > (load-library "misc-tools")) > > (setq rmail-mode-hook 'rmail-mode-hook-extras) > > everytime I do a "rmail" command, these libraries get loaded (as that > is when the hook is run). This is fine, except you really don't want everything (re)loaded *each* time you run the rmail function; rather, you want to load your libraries only once, when you first invoke rmail. You could, of course, get around this by requiring your libraries rather then loading them. -- Ashwin. ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,linus,seismo}!yale!Ram-Ashwin BITNET: Ram@yalecs