Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!yale!spolsky From: spolsky@cs.yale.edu (Joel Spolsky) Newsgroups: comp.emacs Subject: Re: Wanted: Pascal Minor mode for Gnu Emacs Message-ID: <41102@yale-celray.yale.UUCP> Date: 23 Oct 88 22:13:01 GMT References: <23772@tut.cis.ohio-state.edu> <1988Oct11.110614.1154@mntgfx.mentor.com> <169@s1.sys.uea.ac.uk> Sender: root@yale.UUCP Reply-To: spolsky@cs.yale.edu (Joel Spolsky) Distribution: comp Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 24 In-reply-to: mdt@s1.sys.uea.ac.uk (M.D. Templeton GEC ) In article <169@s1.sys.uea.ac.uk>, mdt@s1 (M.D. Templeton GEC ) writes: | It's all very well posting bits of lisp code to create new modes, and so on, | but how do I autoload it??? Especially if the code is compiled, then I can't | just put it in my .emacs file, and I can't get the hang of using autoload | in .emacs, myself. Can someone tell me how to do it?? OK. Let's say you have a function named "make-coffee" in the file "/emacs/lisp/extended_functions.el". All you do is put the command (autoload 'make-coffee "/emacs/lisp/extended_functions" "Make a nice pot of coffee" t) in your .emacs file. Now the function make-coffee is available, emacs can even auto-expand it, and when you call it, the file specified will be loaded. +----------------+---------------------------------------------------+ | Joel Spolsky | bitnet: spolsky@yalecs uucp: ...!yale!spolsky | | | arpa: spolsky@yale.edu voicenet: 203-436-1483 | +----------------+---------------------------------------------------+ #include